rigidbody
The incoming Rigidbody2D involved in the collision with the ContactPoint2D.otherRigidbody.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public Rigidbody2D rigidbody { get; }
Remarks
This may be null if the Collision2D.collider is not attached to a Rigidbody2D.
Additional Resources: Collider2D and Rigidbody2D.