CollisionComponent
A Component responsible for managing collision settings and operations, including collision detection and response.
This component is essential for enabling physics effects such as forces, motion, and interactions between objects. Attach this component to entities to integrate physics-based behavior into your application.
Note: The collision detection system operates with a precision of 0.001 meters (1 millimeter). When the distance between the surfaces of two colliders is less than this threshold, the colliders are considered to be in contact.
Constructors
Creates a new CollisionComponent instance.
Properties
The CollisionFilter of the CollisionComponent. The CollisionFilter is used to group and classify entities into different collision groups. Default value is CollisionFilter.COLLISION_FILTER_DEFAULT.
The CollisionInfoDetailLevel of the CollisionComponent. Default value is CollisionInfoDetailLevel.BRIEF.
The CollisionResponseMode of the CollisionComponent. Default value is CollisionResponseMode.COLLIDER_FULL.
Represents the geometric shape of an object used for collision detection in physics simulations. This shape is a collection of ShapeResources, which is fundamental for determining whether two objects intersect or collide in a virtual environment.