Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

Rigidbody2D.GetRelativeVector

Switch to Manual
public function GetRelativeVector(relativeVector: Vector2): 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.