Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Rigidbody2D.GetRelativeVector

Switch to Manual
GetRelativeVector(relativeVector: Vector2): Vector2;
Vector2 GetRelativeVector(Vector2 relativeVector);
def GetRelativeVector(relativeVector as Vector2) as Vector2

Parameters

relativeVectorThe local space vector to transform into a global space vector.

Description

Get a global space vector given the vector relativeVector in rigidBody local space.