Physics

Objects and functions related to Torque 3D’s physics layer.

Enumeration

enum PhysicsSimType

How to handle the physics simulation with the client’s and server.

Parameters:
  • ClientOnly – Only handle physics on the client.
  • ServerOnly – Only handle physics on the server.
  • ClientServer – Handle physics on both the client and server.

Variables

bool $PhysXLogWarnings

Output PhysX warnings to the console.

bool $Physics::isSinglePlayer

Informs the physics simulation if only a single player exists. If true, optimizations will be implemented to better cater to a single player environmnent.

bool physicsPluginPresent

Returns true if a physics plugin exists and is initialized. physicsPluginPresent()

int $pref::Physics::threadCount

Number of threads to use in a single pass of the physics engine. Defaults to 2 if not set.