ドキュメント

Unity Engine

Unity Engine

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