Introduction to Unity’s Physics System
Unity's Physics System is a built-in feature that simulates real-world physical behaviors within the game engine. It allows GameObjects to move, collide, bounce, rotate, and react based on defined physical properties like gravity, friction, and force.
Unity primarily offers two physics engines:
- 3D Physics (NVIDIA PhysX Engine)
- 2D Physics (Box2D Engine)
For this class, we are focusing on 3D Physics using PhysX, which powers rigid body simulations.
Why Use Unity’s Physics System?
- To create realistic movement and interactions in games and simulations.
- To Simulate real-world forces, applying gravity, force, and collisions automatically instead of manually animating movement.
- To make objects react to player input or environmental factors.
- To implement interactive mechanics, such as falling objects, swinging doors, bouncing balls, or complex machines like our Rube Goldberg Machine, Developing physics-based puzzles, simulations, and interactions.
https://youtu.be/xp37Hz1t1Q8?si=1qQ984Ks0XzOKHff
Key Components of Unity’s Physics System
1. Rigidbody