Using Rigidbody2D Component in Unity
📖 Scenario: You are creating a simple 2D game in Unity where a character moves and falls naturally using physics.
🎯 Goal: Learn how to add and configure the Rigidbody2D component to a game object to make it respond to gravity and forces.
📋 What You'll Learn
Create a 2D game object with a Rigidbody2D component
Set the gravity scale for the Rigidbody2D
Apply a force to the Rigidbody2D to move the object
Print the Rigidbody2D's velocity to the console
💡 Why This Matters
🌍 Real World
Rigidbody2D is used in 2D games to simulate realistic physics like gravity, movement, and collisions.
💼 Career
Understanding Rigidbody2D is essential for game developers working with Unity to create interactive and dynamic 2D game objects.
Progress0 / 4 steps