Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

Rigidbody2D.GetVector

Switch to Manual
public function GetVector(vector: Vector2): Vector2;

Parameters

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

Description

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