RigidbodyType2D
The physical behaviour type of the Rigidbody2D.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Enum
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public enum RigidbodyType2D
Remarks
Controls the physical behaviour of a Rigidbody2D in how it should move, react to forces and interact with the rest of the physics simulation.
Additional Resources: Rigidbody2D.bodyType.
Fields
Value | Description |
|---|---|
| Dynamic | Sets the Rigidbody2D to have dynamic behaviour. |
| Kinematic | Sets the Rigidbody2D to have kinematic behaviour. |
| Static | Sets the Rigidbody2D to have static behaviour. |