Physics Controller

From Tombstone Engine Wiki
Jump to: navigation, search

The Physics Controller is a type of controller that represents the global physics simulation. The Physics Controller is built into the core engine, and automatically assigned to the Physics Node when it is placed in the scene. A single Physics Node should be placed in any world that uses the built-in physics simulation by using the tool in the Physics Page.

Settings

The following settings are available for Physics Controllers.

Setting

Description

Gravity acceleration (m/s2)

The normal acceleration of gravity for the whole world in meters per second squared. This can be changed on a per-object basis by using the Gravity multiplier setting of the Rigid Body Controller.

Script Functions

The Physics Controller defines the following functions that can be called from a script using the Call Controller Function method.

Function

Description

Set Gravity

Sets the acceleration of gravity.

  • The Gravity acceleration (m/s2) setting specifies the new acceleration of gravity in meters per second squared.

See Also