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.

GetVector(vector: Vector2): Vector2;
Vector2 GetVector(Vector2 vector);
def GetVector(vector as Vector2) as Vector2

Parameters

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

Description

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