文档

Unity Engine

Unity Engine

relativeVelocity

Gets the relative velocity of the two colliders at the contact point (Read Only).
阅读时间1 分钟最后更新于 2 天前

Definition

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.