relativeVelocity
Gets the relative velocity of the two colliders at the contact point (Read Only).
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public Vector2 relativeVelocity { get; }
Remarks
The relative velocity is the difference in velocity between two moving and rotating colliders colliding at the contact point.
Additional Resources: Rigidbody2D.GetPointVelocity.