โ Game Development with Unity learning pathGame Development with Unity ยท Module 5 of 10
Physics and collisions
Simulate gravity, collisions and triggers.
๐ Key ideas
- Rigidbody adds physics (gravity, mass, forces).
- Colliders define collision shapes: Box, Sphere, Capsule, Mesh.
- OnCollisionEnter detects hits; OnTriggerEnter detects entering trigger zones.
- Physics materials control bounce and friction.
- 2D games use Rigidbody2D and Collider2D.
๐ก Real-life example: Colliders are invisible bubble wrap around objects; Rigidbody is the gravity that makes them fall.
RigidbodyAdds physics simulation
ColliderCollision shape
TriggerCollider detecting overlap without physics push
Physics materialFriction and bounciness settings