Enumeration: CollisionFlags
Defined in: packages/physics/rigidbody/RigidbodyEnum.ts:4
Collision flags
Enumeration Members
DEFAULT
DEFAULT:
0
Defined in: packages/physics/rigidbody/RigidbodyEnum.ts:8
Default flag for dynamic rigid bodies.
STATIC_OBJECT
STATIC_OBJECT:
1
Defined in: packages/physics/rigidbody/RigidbodyEnum.ts:12
Used for static objects. These objects do not move but can be collided with by other objects.
KINEMATIC_OBJECT
KINEMATIC_OBJECT:
2
Defined in: packages/physics/rigidbody/RigidbodyEnum.ts:16
Used for kinematic objects. These objects are not affected by physical forces (like gravity or collisions) but can be moved programmatically and affect dynamic objects they collide with.
NO_CONTACT_RESPONSE
NO_CONTACT_RESPONSE:
4
Defined in: packages/physics/rigidbody/RigidbodyEnum.ts:20
Objects with this flag do not participate in collision response but still trigger collision events.
CUSTOM_MATERIAL_CALLBACK
CUSTOM_MATERIAL_CALLBACK:
8
Defined in: packages/physics/rigidbody/RigidbodyEnum.ts:24
This flag indicates that the object will use a custom material interaction callback.
CHARACTER_OBJECT
CHARACTER_OBJECT:
16
Defined in: packages/physics/rigidbody/RigidbodyEnum.ts:28
Special flag for collision objects used by character controllers. This is typically used to optimize character collision handling in games.
DISABLE_VISUALIZE_OBJECT
DISABLE_VISUALIZE_OBJECT:
32
Defined in: packages/physics/rigidbody/RigidbodyEnum.ts:32
Prevents this object from being displayed in the physical debug view.
DISABLE_SPU_COLLISION_PROCESSING
DISABLE_SPU_COLLISION_PROCESSING:
64
Defined in: packages/physics/rigidbody/RigidbodyEnum.ts:36
Prevents this object’s collision from being processed on the auxiliary processing unit, optimizing performance on specific hardware platforms.
HAS_CONTACT_STIFFNESS_DAMPING
HAS_CONTACT_STIFFNESS_DAMPING:
128
Defined in: packages/physics/rigidbody/RigidbodyEnum.ts:40
Enables custom contact stiffness and damping settings for this object. This allows adjusting the physical response's stiffness and damping when handling collisions, used to simulate more complex physical interactions.
HAS_CUSTOM_DEBUG_RENDERING_COLOR
HAS_CUSTOM_DEBUG_RENDERING_COLOR:
256
Defined in: packages/physics/rigidbody/RigidbodyEnum.ts:44
Allows specifying a custom rendering color for this object in the physical debug view. This helps differentiate and identify specific physical objects during debugging.
HAS_FRICTION_ANCHOR
HAS_FRICTION_ANCHOR:
512
Defined in: packages/physics/rigidbody/RigidbodyEnum.ts:48
Enables friction anchors for this object. Friction anchors improve the friction effect on contact surfaces, typically used for vehicle tires to enhance grip on the ground and reduce sliding.
HAS_COLLISION_SOUND_TRIGGER
HAS_COLLISION_SOUND_TRIGGER:
1024
Defined in: packages/physics/rigidbody/RigidbodyEnum.ts:52
Triggers sound effects when this object collides. This flag can be used to configure sound feedback for specific collisions, enhancing the realism and immersion of the game or simulation environment.

