Introduction To Unity Physics System

Notes:

Unity Physics System: Introduction
W.K.T. in real world; objects get affected by collisions, gravity, friction, joints and other forces. Similarly in a game; game objects also must be affected by collisions, gravity, friction, joints and other forces.

To implement such real world physics behaviors; Unity uses:

2 different physics engines:
NVIDIA PhysX physics engine to handle 3D physics
Box2D physics engine to handle 2D physics

2 different set of components:
To handle 3D physics it has Physics components like:
- Rigidbody, Box Collider, Capsule Collider, Fixed Joint, Spring Joint etc.
To handle 2D physics it has Physics2D components like:
- Rigidbody2D, Box Collider2D, Capsule Collider2D, Fixed Joint2D, Spring Joint2D etc.

2 different modules for scripting:
Physics module has classes, structures, enumerations, etc. for handling 3D Physics
- Rigidbody, Collider, Collision, Joint, RaycastHit etc.
Physics2D module has classes, structures, enumerations etc. for handling 2D Physics
- Rigidbody2D, Collider2D, Collision2D, Joint2D, RaycastHit2D etc.