|
Represents a destructible physical object simulated through the plugin system. More...
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. |
Represents a destructible physical object simulated through the plugin system.
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.
bool PhysicsShape::isRenderable [static] |
Disables rendering of all instances of this type.
Reimplemented from GameBase.
bool PhysicsShape::isSelectable [static] |
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.