@dcl/sdk 7.0.0-3516578896.commit-9ff50ea → 7.0.0-3516625640.commit-f059a45

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.
@@ -1071,9 +1071,9 @@ export declare namespace Components {
1071
1071
  /** @public */
1072
1072
  const Material: MaterialComponentDefinition;
1073
1073
  /** @public */
1074
- const MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider>;
1074
+ const MeshCollider: MeshColliderComponentDefinition;
1075
1075
  /** @public */
1076
- const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>, PBMeshRenderer>;
1076
+ const MeshRenderer: MeshRendererComponentDefinition;
1077
1077
  /** @public */
1078
1078
  const NftShape: ComponentDefinition<ISchema<PBNftShape>, PBNftShape>;
1079
1079
  /** @public */
@@ -1181,6 +1181,8 @@ export declare function defineLibraryComponents({ defineComponentFromSchema }: P
1181
1181
  export declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponentFromSchema' | 'getComponent'>): {
1182
1182
  Material: MaterialComponentDefinition;
1183
1183
  Animator: AnimatorComponentDefinition;
1184
+ MeshRenderer: MeshRendererComponentDefinition;
1185
+ MeshCollider: MeshColliderComponentDefinition;
1184
1186
  Transform: ComponentDefinition<ISchema<TransformType>, Partial<TransformType>>;
1185
1187
  AudioSource: ComponentDefinition<ISchema<PBAudioSource>, PBAudioSource>;
1186
1188
  AudioStream: ComponentDefinition<ISchema<PBAudioStream>, PBAudioStream>;
@@ -1191,8 +1193,6 @@ export declare function defineSdkComponents(engine: Pick<IEngine, 'defineCompone
1191
1193
  CameraMode: ComponentDefinition<ISchema<PBCameraMode>, PBCameraMode>;
1192
1194
  CameraModeArea: ComponentDefinition<ISchema<PBCameraModeArea>, PBCameraModeArea>;
1193
1195
  GltfContainer: ComponentDefinition<ISchema<PBGltfContainer>, PBGltfContainer>;
1194
- MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider>;
1195
- MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>, PBMeshRenderer>;
1196
1196
  NftShape: ComponentDefinition<ISchema<PBNftShape>, PBNftShape>;
1197
1197
  PointerEventsResult: ComponentDefinition<ISchema<PBPointerEventsResult>, PBPointerEventsResult>;
1198
1198
  PointerHoverFeedback: ComponentDefinition<ISchema<PBPointerHoverFeedback>, PBPointerHoverFeedback>;
@@ -2292,10 +2292,80 @@ export declare namespace Matrix {
2292
2292
  }
2293
2293
 
2294
2294
  /** @public */
2295
- export declare const MeshCollider: ComponentDefinition<ISchema<PBMeshCollider>, PBMeshCollider>;
2295
+ export declare const MeshCollider: MeshColliderComponentDefinition;
2296
+
2297
+ /**
2298
+ * @public
2299
+ */
2300
+ export declare interface MeshColliderComponentDefinition extends ComponentDefinition {
2301
+ /**
2302
+ * @public
2303
+ * Set a box in the MeshCollider component
2304
+ * @param entity - entity to create or replace the MeshCollider component
2305
+ * @param colliderMask - the set of layer where the collider reacts, default: Physics and Pointer
2306
+ */
2307
+ setBox(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
2308
+ /**
2309
+ * @public
2310
+ * Set a plane in the MeshCollider component
2311
+ * @param entity - entity to create or replace the MeshCollider component
2312
+ * @param colliderMask - the set of layer where the collider reacts, default: Physics and Pointer
2313
+ */
2314
+ setPlane(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
2315
+ /**
2316
+ * @public
2317
+ * Set a cylinder in the MeshCollider component
2318
+ * @param entity - entity to create or replace the MeshCollider component
2319
+ * @param radiusBottom - radius of bottom of cylinder
2320
+ * @param radiusTop - radius of top of cylinder
2321
+ * @param colliderMask - the set of layer where the collider reacts, default: Physics and Pointer
2322
+ */
2323
+ setCylinder(entity: Entity, radiusBottom?: number, radiusTop?: number, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
2324
+ /**
2325
+ * @public
2326
+ * Set a sphere in the MeshCollider component
2327
+ * @param entity - entity to create or replace the MeshCollider component
2328
+ * @param colliderMask - the set of layer where the collider reacts, default: Physics and Pointer
2329
+ */
2330
+ setSphere(entity: Entity, colliderLayers?: ColliderLayer | ColliderLayer[]): void;
2331
+ }
2296
2332
 
2297
2333
  /** @public */
2298
- export declare const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>, PBMeshRenderer>;
2334
+ export declare const MeshRenderer: MeshRendererComponentDefinition;
2335
+
2336
+ /**
2337
+ * @public
2338
+ */
2339
+ export declare interface MeshRendererComponentDefinition extends ComponentDefinition {
2340
+ /**
2341
+ * @public
2342
+ * Set a box in the MeshRenderer component
2343
+ * @param entity - entity to create or replace the MeshRenderer component
2344
+ * @param uvs - uvs coord
2345
+ */
2346
+ setBox(entity: Entity, uvs?: number[]): void;
2347
+ /**
2348
+ * @public
2349
+ * Set a plane in the MeshRenderer component
2350
+ * @param entity - entity to create or replace the MeshRenderer component
2351
+ * @param uvs - uvs coord
2352
+ */
2353
+ setPlane(entity: Entity, uvs?: number[]): void;
2354
+ /**
2355
+ * @public
2356
+ * Set a cylinder in the MeshRenderer component
2357
+ * @param entity - entity to create or replace the MeshRenderer component
2358
+ * @param radiusBottom -
2359
+ * @param radiusTop -
2360
+ */
2361
+ setCylinder(entity: Entity, radiusBottom?: number, radiusTop?: number): void;
2362
+ /**
2363
+ * @public
2364
+ * Set a sphere in the MeshRenderer component
2365
+ * @param entity - entity to create or replace the MeshRenderer component
2366
+ */
2367
+ setSphere(entity: Entity): void;
2368
+ }
2299
2369
 
2300
2370
  /**
2301
2371
  * @public