The Rigidbody component
When you add a Rigidbody component to any Unity game object, it will benefit from the calculations that are performed by the physics engine. Rigidbody components have parameters for gravity, mass, and drag, among others. During gameplay, the physics engine calculates each rigid object's momentum (mass, speed, and direction).
Rigid objects interact with other rigid objects. For example, if they collide, they'll bounce off each other and the parameters of the interaction can be controlled with a physic material with properties such as friction and bounciness factors.
Rigidbodies can be flagged as kinematic, which is usually only used when the object is driven by animation or scripts. Collisions will not affect kinematic ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access