relativeVelocity
Gets the relative velocity of the two colliders at the contact point (Read Only).
Read time 1 minuteLast updated 4 days ago
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