Physics collider will find the rigidbody component on the node and set to this property.
The density.
The density.
The friction coefficient, usually in the range [0,1].
The friction coefficient, usually in the range [0,1].
Gets or sets the group of the rigid body.
Gets or sets the group of the rigid body.
Circle radius
Circle radius
The restitution (elasticity) usually in the range [0,1].
The restitution (elasticity) usually in the range [0,1].
A sensor collider collects contact information but never generates a collision response
A sensor collider collects contact information but never generates a collision response
Get the world aabb of the collider
Get world center of the circle collider.
Get world radius of the circle collider.
If the physics engine is box2d, need to call this function to apply current changes to collider, this will regenerate inner box2d fixtures.
Generated using TypeDoc
Tag. If a node has several collider components, you can judge which type of collider is collided according to the tag.