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 animatePhysics: bool;
bool animatePhysics;
animatePhysics as bool

Description

When turned on, animations will be executed in the physics loop. This is only useful in conjunction with kinematic rigidbodies.

An animated platform can apply velocity and friction to rigid bodies sitting on top of it. In order to use this, animatePhysics must be enabled and animated object must be a kinematic rigid body.