Physics
Rigidbody (physics body)
A rigidbody is the part of a game object that the physics engine moves: it has mass, velocity and gravity. A collider gives the shape; the rigidbody gives the motion.
Watch: see it in 30 seconds
Video coming soon
A 30-second visual explanation
Why it matters for your game
- Characters in a top-down village usually do not want real physics; they want to move exactly where the player says. Ask for a 'kinematic' body, which is moved by code but still collides.
- Thrown objects, falling leaves and bouncing balls want a 'dynamic' body with gravity.
- Walls and houses are 'static': they never move, and marking them static makes the game faster.
How it comes up when you talk to your AI
- 'Static, kinematic, dynamic', 'velocity', 'gravity scale', 'friction', 'mass'.
- If a character slides or jitters against walls, the question is which body type it has and whether movement is applied as velocity or by setting position directly.
Ask your AI about it
Paste this into the assistant you build with. It is written to get a useful answer for your own project, not a textbook page.
Explain static, kinematic and dynamic physics bodies for a 2D game, and which one a player character in a top-down village should use. Show the movement code for a kinematic character that stops at walls.