Components
These components make a node part of the simulation. Each has its own page in the reference with every field.
| Component | Purpose |
|---|---|
| Rigid Body 2D | makes the node a body: static, kinematic or dynamic |
| Box, Circle, Capsule, Polygon and Edge Collider 2D | shapes |
| Distance Joint 2D | keeps a distance to the Target body, rigid or springy |
| Revolute Joint 2D | pins to the Target body at Anchor, with an optional limit and motor |
Every collider has Offset, IsTrigger, Friction, Restitution and Density.
- Capsules lie along the node's local X axis.
Lengthincludes the caps. - Polygons are convex, with 3 to 8 points.
- Edge colliders are polylines for level geometry.
Loopcloses them.OneSidedmakes them solid only from the side the points wind towards: points from left to right are solid from above.
A body's Type decides how it moves: static never moves, kinematic moves by its velocity and ignores forces, dynamic reacts to forces and contacts. Its velocity and whether it is awake are runtime state, listed on the Rigid Body 2D page.
Try it
Change the example parameters and compare the result. Reset restores the initial scene.
Starts the scene; open the example parameters to experiment.