Torque 3D - Script Manual: Physics

TorqueScript

Main   Class List   Namespace List   Online

Physics
[Game]

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

Classes

class  PhysicsDebris
 Represents one or more rigid bodies defined in a single mesh file with a limited lifetime. More...
class  PhysicsDebrisData
 Defines the properties of a PhysicsDebris object. More...
class  PhysicsForce
 Helper object for gameplay physical forces. More...
class  PhysicsShape
 Represents a destructible physical object simulated through the plugin system. More...
class  PhysicsShapeData
 Defines the properties of a PhysicsShape. More...
class  PxCloth
 Rectangular patch of cloth simulated by PhysX. More...
class  PxMaterial
 Defines a PhysX material assignable to a PxMaterial. More...
class  PxMultiActor
 Represents a destructible physical object simulated using PhysX. More...
class  PxMultiActorData
 Defines the properties of a type of PxMultiActor. More...
class  RadialImpulseEvent
 Creates a physics-based impulse effect from a defined central point and magnitude. More...

Enumerations

enum  PhysicsSimType {
  ClientOnly,
  ServerOnly,
  ClientServer
}
 

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

More...

Variables

bool $PhysXLogWarnings
 Output PhysX warnings to the console.
bool $Physics::isSinglePlayer
 Informs the physics simulation if only a single player exists.
bool physicsPluginPresent
 Returns true if a physics plugin exists and is initialized.
int $pref::Physics::threadCount
 Number of threads to use in a single pass of the physics engine.

Detailed Description

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


Enumeration Type Documentation

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

Enumerator:
ClientOnly 

Only handle physics on the client.

ServerOnly 

Only handle physics on the server.

ClientServer 

Handle physics on both the client and server.


Variable Documentation

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.

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.



Copyright © GarageGames, LLC. All Rights Reserved.