Physics Controller

From C4 Engine Wiki
Revision as of 10:45, 15 July 2023 by Eric Lengyel (talk | contribs) (Created page with "__NOTOC__ 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. {| {{Table}} {{...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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