@dcl/sdk 7.0.0-3205931709.commit-049924f → 7.0.0-3205963061.commit-6d3acc9

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.
@@ -70,6 +70,13 @@ declare const enum CameraModeValue {
70
70
  UNRECOGNIZED = -1
71
71
  }
72
72
 
73
+ export declare const enum ColliderLayer {
74
+ None = 0,
75
+ Pointer = 1,
76
+ Physics = 2,
77
+ UNRECOGNIZED = -1
78
+ }
79
+
73
80
  declare interface Color3 {
74
81
  r: number;
75
82
  g: number;
@@ -724,6 +731,25 @@ export declare function isPointerEventActiveGenerator(engine: IEngine): (entity:
724
731
 
725
732
  export declare const log: (...a: any[]) => void;
726
733
 
734
+ /**
735
+ * @public
736
+ * Make the collision mask with some collider layers
737
+ * @param layers a array layers to be assigned
738
+ * @returns collisionMask to be used in the MeshCollider field
739
+ * @example
740
+ * ```ts
741
+ * // Physics and Pointer are the defaults
742
+ * MeshCollider.create(entity, {
743
+ * collisionMask: makeCollisionMask(
744
+ * ColliderLayer.Physics,
745
+ * ColliderLayer.Pointer
746
+ * ),
747
+ * box: {}
748
+ * })
749
+ * ```
750
+ */
751
+ export declare function makeCollisionMask(...layers: ColliderLayer[]): number;
752
+
727
753
  /** @public */
728
754
  export declare const Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
729
755