scene.physics.<...>

Return to Introduction  Previous page  Next page

Controls the physics engine for the scene.

 

Properties

 

gravity

A floating point value represting the default gravity in the scene (defaults to -9.8).

engine

A string determining which physics engine is in use (currently 'physx' or 'bullet').  This can only be set once in the scene properties form and not via script.

forceScale

A floating point value to multiply all forces by.  This can be useful if moving between different physics engines.

 

 

Examples

 

scene.gravity=0; // zero gravity!

 

Remarks

 

Indivudal objects can override the default gravity with their own value in object.physics.gravity.

 

See Also

 

System



Copyright ©2004 Worldweaver Ltd. DX Studio Home