Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

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.