This is a base helper class for configuring physics settings of a world object. More...
#include <worldobjectphysicssettings.h>
Public Member Functions | |
| WorldObjectPhysicsSettings (WorldObject *WO, btCollisionObject *PhysicsObject) | |
| Standard Constructor. | |
| virtual | ~WorldObjectPhysicsSettings () |
| Class destructor. | |
| virtual WorldObjectActivationState | GetActivationState () const |
| How activated or deactivated is the object. | |
| virtual Whole | GetCollisionGroup () const |
| Gets the actors collision group. | |
| virtual Whole | GetCollisionMask () const |
| Gets the actors collision mask. | |
| virtual bool | GetCollisionResponse () const |
| Will this respond to 3d collisions. | |
| virtual CollisionShape * | GetCollisionShape () const |
| Gets the collision shape currently in use by this actor. | |
| virtual bool | IsActive () const |
| Checks if the object is active in the simulation. | |
| virtual bool | IsKinematic () const |
| Is the actir kinematic. | |
| virtual bool | IsStatic () const |
| Is the actor static. | |
| virtual bool | IsStaticOrKinematic () const |
| Checks of the actor is static or kinematic. | |
| virtual void | ProtoDeSerialize (const xml::Node &OneNode) |
| Take the data stored in an XML and overwrite this instance of this object with it. | |
| virtual void | ProtoSerialize (xml::Node &CurrentRoot) const |
| Convert this class to an xml::Node ready for serialization. | |
| virtual void | SetActivationState (const WorldObjectActivationState &State, bool Force=false) |
| Sets the activation state of the actor. | |
| virtual void | SetCollisionGroupAndMask (const Whole &Group, const Whole &Mask) |
| Set the collision group and mask for the actor to determine what it should collide with. | |
| virtual void | SetCollisionShape (CollisionShape *Shape) |
| Sets the collision shape to be used. | |
Static Public Member Functions | |
| static String | SerializableName () |
| Get the name of the the XML tag this class will leave behind as its instances are serialized. | |
Protected Member Functions | |
| void | AssignShape (CollisionShape *Shape) |
| Assigns a shape to the appropriate objects. | |
Protected Attributes | |
| Whole | CollisionGroup |
| A number of World Objects will use this in conjuction with the physics system. | |
| Whole | CollisionMask |
| Stores the kind of World Objects that can collide with each other. | |
| WorldObject * | Parent |
| The World Object this belongs to. | |
| btCollisionObject * | WorldObjectCO |
| Physics Object of the World Object. | |
| CollisionShape * | WorldObjectShape |
| The physics shape of the World Object. | |
This is a base helper class for configuring physics settings of a world object.
This class contains functions for the configuring of physics specific settings of a world object. This class can only configure the world objects physics. For configuring world object graphics, see WorldObjectGraphicsSettings.
Definition at line 63 of file worldobjectphysicssettings.h.
| Mezzanine::WorldObjectPhysicsSettings::WorldObjectPhysicsSettings | ( | WorldObject * | WO, |
| btCollisionObject * | PhysicsObject | ||
| ) |
Standard Constructor.
| WO | The World Object this settings class configures. |
| PhysicsObject | The physics object belonging to the World Object this class configures. |
Definition at line 63 of file worldobjectphysicssettings.cpp.
| WorldObjectActivationState Mezzanine::WorldObjectPhysicsSettings::GetActivationState | ( | ) | const [virtual] |
How activated or deactivated is the object.
Definition at line 146 of file worldobjectphysicssettings.cpp.
| Whole Mezzanine::WorldObjectPhysicsSettings::GetCollisionGroup | ( | ) | const [virtual] |
Gets the actors collision group.
Definition at line 103 of file worldobjectphysicssettings.cpp.
| Whole Mezzanine::WorldObjectPhysicsSettings::GetCollisionMask | ( | ) | const [virtual] |
Gets the actors collision mask.
Definition at line 108 of file worldobjectphysicssettings.cpp.
| bool Mezzanine::WorldObjectPhysicsSettings::GetCollisionResponse | ( | ) | const [virtual] |
Will this respond to 3d collisions.
Definition at line 128 of file worldobjectphysicssettings.cpp.
| CollisionShape * Mezzanine::WorldObjectPhysicsSettings::GetCollisionShape | ( | ) | const [virtual] |
Gets the collision shape currently in use by this actor.
Definition at line 87 of file worldobjectphysicssettings.cpp.
| bool Mezzanine::WorldObjectPhysicsSettings::IsActive | ( | ) | const [virtual] |
Checks if the object is active in the simulation.
Definition at line 133 of file worldobjectphysicssettings.cpp.
| bool Mezzanine::WorldObjectPhysicsSettings::IsKinematic | ( | ) | const [virtual] |
Is the actir kinematic.
Definition at line 113 of file worldobjectphysicssettings.cpp.
| bool Mezzanine::WorldObjectPhysicsSettings::IsStatic | ( | ) | const [virtual] |
Is the actor static.
Definition at line 118 of file worldobjectphysicssettings.cpp.
| bool Mezzanine::WorldObjectPhysicsSettings::IsStaticOrKinematic | ( | ) | const [virtual] |
Checks of the actor is static or kinematic.
Checks of the actor is static or kinematic, returns true if it is either.
Definition at line 123 of file worldobjectphysicssettings.cpp.
| void Mezzanine::WorldObjectPhysicsSettings::ProtoDeSerialize | ( | const xml::Node & | OneNode | ) | [virtual] |
Take the data stored in an XML and overwrite this instance of this object with it.
| OneNode | and xml::Node containing the data. |
Reimplemented in Mezzanine::ActorBasePhysicsSettings, Mezzanine::ActorRigidPhysicsSettings, and Mezzanine::NonTriggerPhysicsSettings.
Definition at line 201 of file worldobjectphysicssettings.cpp.
| void Mezzanine::WorldObjectPhysicsSettings::ProtoSerialize | ( | xml::Node & | CurrentRoot | ) | const [virtual] |
Convert this class to an xml::Node ready for serialization.
| CurrentRoot | The point in the XML hierarchy that all this quaternion should be appended to. |
Reimplemented in Mezzanine::ActorBasePhysicsSettings, Mezzanine::ActorRigidPhysicsSettings, and Mezzanine::NonTriggerPhysicsSettings.
Definition at line 154 of file worldobjectphysicssettings.cpp.
| String Mezzanine::WorldObjectPhysicsSettings::SerializableName | ( | ) | [static] |
Get the name of the the XML tag this class will leave behind as its instances are serialized.
Reimplemented in Mezzanine::ActorBasePhysicsSettings, Mezzanine::ActorRigidPhysicsSettings, and Mezzanine::NonTriggerPhysicsSettings.
Definition at line 231 of file worldobjectphysicssettings.cpp.
| void Mezzanine::WorldObjectPhysicsSettings::SetActivationState | ( | const WorldObjectActivationState & | State, |
| bool | Force = false |
||
| ) | [virtual] |
Sets the activation state of the actor.
| State | The activation state to set for the actor. See the ActorActivationState enum for more info. |
| Force | Whether or not you want to force the state. Some states may not apply based on the condition of the actor if this is set to false. |
Definition at line 140 of file worldobjectphysicssettings.cpp.
| void Mezzanine::WorldObjectPhysicsSettings::SetCollisionGroupAndMask | ( | const Whole & | Group, |
| const Whole & | Mask | ||
| ) | [virtual] |
Set the collision group and mask for the actor to determine what it should collide with.
These values are automatically calculated for you with some sane default values. Only edit these if you know what you are doing.
| Group | The group to which this actor belongs. |
| Mask | The other groups to which this actor should collide with. |
Definition at line 92 of file worldobjectphysicssettings.cpp.
| void Mezzanine::WorldObjectPhysicsSettings::SetCollisionShape | ( | CollisionShape * | Shape | ) | [virtual] |
Sets the collision shape to be used.
| Shape | The shape to be applied. |
Reimplemented in Mezzanine::ActorRigidPhysicsSettings, and Mezzanine::ActorSoftPhysicsSettings.
Definition at line 81 of file worldobjectphysicssettings.cpp.
1.7.3