Main   Class List   Namespace List   Wiki

PhysicsShape Class Reference
[Physics]

Represents a destructible physical object simulated through the plugin system. More...

Inheritance diagram for PhysicsShape:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void destroy ()
 Disables rendering and physical simulation of the shape and spawns the explosion, debri, and destroyedShape if any are specified. Note that this does not actually delete the PhysicsShape.
bool isDestroyed ()
 Returns true if the shape is currently destroyed.
void restore ()
 Restore to un-destroyed state: enables rendering and physical simulation.

Public Attributes

PhysicsShape

bool playAmbient
 Enables automatic playing of the animation named "ambient" (if it exists) when the PhysicsShape is loaded.

Static Public Attributes

static bool isRenderable
 Disables rendering of all instances of this type.
static bool isSelectable
 Disables selection of all instances of this type.
static bool noCorrections
 If set true, client-side shapes will recieve no corrections from the server and will instead by allowed to diverge.
static bool noSmoothing
 If set true, client-side shapes will render immediately at the position they are corrected to when a correction is recieved from the server.

Detailed Description

Represents a destructible physical object simulated through the plugin system.

See also:
PhysicsShapeData.

Member Function Documentation

void PhysicsShape::destroy (  ) 

Disables rendering and physical simulation of the shape and spawns the explosion, debri, and destroyedShape if any are specified. Note that this does not actually delete the PhysicsShape.

bool PhysicsShape::isDestroyed (  ) 

Returns true if the shape is currently destroyed.

void PhysicsShape::restore (  ) 

Restore to un-destroyed state: enables rendering and physical simulation.


Member Data Documentation

Disables rendering of all instances of this type.

Reimplemented from GameBase.

Disables selection of all instances of this type.

Reimplemented from GameBase.

Enables automatic playing of the animation named "ambient" (if it exists) when the PhysicsShape is loaded.



Copyright © GarageGames, LLC. All Rights Reserved.