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.

var centerOfMass: Vector2;
Vector2 centerOfMass;
centerOfMass as Vector2

Description

The center of mass of the rigidBody in local space.