Rigidbodies

BeginnerDesigner

Rigidbodies move based on physical forces applied to them, such as gravity and collisions. Typical rigidbodies are boxes, balls, furniture, and so on — objects that are pushed, pulled, and knocked around, and also have effects on other rigidbodies they collide with.

Static and rigidbody colliders

Add a rigidbody collider

  • Select the entity you want to be a rigidbody collider.

  • In the Property Grid, click Add component and select Rigidbody.

Add Static collider component

  • Set the collider shape to match the entity. To do this, in the Property Grid, expand the Rigidbody component to view its properties.

  • Next to Collider Shapes, click Green plus button (Add) and select the shape you want.

Add Static collider component

Component properties

You can adjust the rigidbody properties in the Property Grid.

Rigidbody properties

PropertyDescription
Collision GroupSets which collision group the object belongs to.
Can Collide WithSets which groups the object collides with.
Collision EventsIf this is enabled, the object reports collision events, which you can use in scripts. It has no effect on physics. If you have no scripts using collision events for the object, disable this option to save CPU.
Can SleepIf this is enabled, the physics engine doesn't process physics objects when they're not moving. This saves CPU.
RestitutionSets the amount of kinetic energy lost or gained after a collision. A typical value is between 0 and 1. If the restitution property of colliding entities is 0, the entities lose all energy and stop moving immediately on impact. If the restitution is 1, they lose no energy and rebound with the same velocity they collided at. Use this to change the "bounciness" of rigidbodies.
FrictionSets the surface friction.
Rolling FrictionSets the rolling friction.
CCD Motion ThresholdSets the velocity at which continuous collision detection (CCD) takes over. CCD prevents fast-moving entities (such as bullets) erroneously passing through other entities.
CCD Swept Sphere RadiusSets the radius of the bounding sphere containing the position between two physics frames during continuous collision detection.
Is TriggerToggles whether the rigidbody is a trigger.
Is KinematicToggles whether the rigidbody is kinematic and therefore moved only by its Transform property.
MassSets the collider mass. For large differences, use a point value; for example, write 0.1 or 10, not 1 or 100000.
Linear dampingThe amount of damping for directional forces.
Angular dampingThe amount of damping for rotational forces.
Override GravityOverrides gravity with the vector specified in Gravity.
GravitySets a custom gravity vector applied if Override Gravity is selected.
Node NameIf the collider entity contains a bone structure, the node name can refer to a bones node name to be linked to that specific bone.
Collider ShapesAdds a collider shape.

See also