RigidbodyType2D
The physical behaviour type of the Rigidbody2D.
阅读时间1 分钟最后更新于 1 个月前
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. |