Skip to content

Collider

A collider connects to its parent rigidbody to simulate under physics.

The type of collider, must be box, sphere or geometry. Defaults to box.

When type is box, sets the size of the box. Defaults to 1, 1, 1.

When type is sphere, sets the radius of the sphere. Defaults to 0.5.

Whether the geometry should be considered “convex”. If disabled, the mesh will act as a trimesh. Defaults to false

Convex meshes are not only more performant, but also allow two convex dynamic rigidbodies to collide. This is the same behavior that engines like Unity use.

Whether the collider is a trigger. Defaults to false.

A trigger will not collide with anything, and instead will trigger the onTriggerEnter and onTriggerLeave functions on the parent rigidbody.

NOTE: Triggers are forced to act like convex shapes. This is a limitation in the physics engine.

Inherits all Node properties