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.

Rigidbody2D.GetVector

Switch to Manual
public Vector2 GetVector(Vector2 vector);

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.