LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

ContactPoint2D.relativeVelocity

public Vector2 relativeVelocity;

Description

Gets the relative velocity of the two colliders at the contact point (Read Only).

The relative velocity is the difference in velocity between two moving and rotating colliders colliding at the contact point.

See Also: Rigidbody2D.GetPointVelocity.