Legacy Documentation: Version 2018.1 (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

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.

Did you find this page useful? Please give it a rating: