@dcl/sdk 7.0.0-3038080345.commit-de046a3 → 7.0.0-3039764556.commit-d9e186e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ecs7/index.d.ts +20 -0
- package/dist/ecs7/index.js +142 -50
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/ecs7/proto-definitions/Raycast.proto +19 -0
- package/dist/ecs7/proto-definitions/RaycastResult.proto +2 -1
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +20 -0
package/dist/ecs7/index.d.ts
CHANGED
@@ -253,6 +253,8 @@ export declare namespace Components {
|
|
253
253
|
/** @public */
|
254
254
|
const PointerLock: ComponentDefinition<ISchema<PBPointerLock>, PBPointerLock>;
|
255
255
|
/** @public */
|
256
|
+
const Raycast: ComponentDefinition<ISchema<PBRaycast>, PBRaycast>;
|
257
|
+
/** @public */
|
256
258
|
const RaycastResult: ComponentDefinition<ISchema<PBRaycastResult>, PBRaycastResult>;
|
257
259
|
/** @public */
|
258
260
|
const SphereShape: ComponentDefinition<ISchema<PBSphereShape>, PBSphereShape>;
|
@@ -491,6 +493,7 @@ declare function defineSdkComponents(engine: PreEngine): {
|
|
491
493
|
PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>, PBPointerEvents>;
|
492
494
|
PointerEventsResult: ComponentDefinition<ISchema<PBPointerEventsResult>, PBPointerEventsResult>;
|
493
495
|
PointerLock: ComponentDefinition<ISchema<PBPointerLock>, PBPointerLock>;
|
496
|
+
Raycast: ComponentDefinition<ISchema<PBRaycast>, PBRaycast>;
|
494
497
|
RaycastResult: ComponentDefinition<ISchema<PBRaycastResult>, PBRaycastResult>;
|
495
498
|
SphereShape: ComponentDefinition<ISchema<PBSphereShape>, PBSphereShape>;
|
496
499
|
TextShape: ComponentDefinition<ISchema<PBTextShape>, PBTextShape>;
|
@@ -2138,6 +2141,14 @@ declare interface PBPointerLock {
|
|
2138
2141
|
isPointerLocked: boolean;
|
2139
2142
|
}
|
2140
2143
|
|
2144
|
+
declare interface PBRaycast {
|
2145
|
+
timestamp: number;
|
2146
|
+
origin: Vector3_2 | undefined;
|
2147
|
+
direction: Vector3_2 | undefined;
|
2148
|
+
maxDistance: number;
|
2149
|
+
queryType: RaycastQueryType;
|
2150
|
+
}
|
2151
|
+
|
2141
2152
|
declare interface PBRaycastResult {
|
2142
2153
|
timestamp: number;
|
2143
2154
|
origin: Vector3_2 | undefined;
|
@@ -2586,6 +2597,9 @@ export declare namespace Quaternion {
|
|
2586
2597
|
*/
|
2587
2598
|
export declare const RAD2DEG: number;
|
2588
2599
|
|
2600
|
+
/** @public */
|
2601
|
+
export declare const Raycast: ComponentDefinition<ISchema<PBRaycast>, PBRaycast>;
|
2602
|
+
|
2589
2603
|
/** Position will be relative to the scene */
|
2590
2604
|
declare interface RaycastHit {
|
2591
2605
|
position: Vector3_2 | undefined;
|
@@ -2597,6 +2611,12 @@ declare interface RaycastHit {
|
|
2597
2611
|
entityId?: number | undefined;
|
2598
2612
|
}
|
2599
2613
|
|
2614
|
+
declare const enum RaycastQueryType {
|
2615
|
+
HIT_FIRST = 0,
|
2616
|
+
QUERY_ALL = 1,
|
2617
|
+
UNRECOGNIZED = -1
|
2618
|
+
}
|
2619
|
+
|
2600
2620
|
/** @public */
|
2601
2621
|
export declare const RaycastResult: ComponentDefinition<ISchema<PBRaycastResult>, PBRaycastResult>;
|
2602
2622
|
|