40 #ifndef _physicsdualtransformconstraint_cpp
41 #define _physicsdualtransformconstraint_cpp
43 #include "Physics/dualtransformconstraint.h"
44 #include "Physics/physicsmanager.h"
45 #include "Physics/rigidproxy.h"
47 #include "stringtool.h"
106 if( this->
ProxA != NULL ) {
110 if( this->
ProxB != NULL ) {
128 if( !InitDataNode.
Empty() ) {
134 if( !CurrAttrib.
Empty() )
138 if( !CurrAttrib.
Empty() )
142 if( !PivotANode.
Empty() ) {
147 if( !PivotBNode.
Empty() ) {
161 {
return "DualTransformConstraint"; }
Attribute AppendAttribute(const Char8 *Name)
Creates an Attribute and puts it at the end of this Nodes attributes.
A light-weight handle for manipulating attributes in DOM tree.
virtual UInt32 GetProxyID() const
Gets the unique ID of this proxy.
Thrown when the requested identity could not be found.
Node GetFirstChild() const
Get the first child Node of this Node.
#define MEZZ_EXCEPTION(num, desc)
An easy way to throw exceptions with rich information.
Thrown when a version is accessed/parsed/required and it cannot work correctly or is missing...
CollidableProxy * GetProxyByID(const UInt32 ID) const
Gets the CollidableProxy via its ID.
PhysicsManager * Manager
This is a pointer to the physics manager that created and owns this constraint.
This is the base class for all constraints supported.
bool Empty() const
Is this storing anything at all?
The interface for serialization.
bool SetValue(const Char8 *rhs)
Set the value of this.
A light-weight handle for manipulating nodes in DOM tree.
unsigned int AsUint(unsigned int def=0) const
Attempts to convert the value of the attribute to an unsigned int and returns the results...
int AsInt(int def=0) const
Attempts to convert the value of the attribute to an int and returns the results. ...
uint32_t UInt32
An 32-bit unsigned integer.
bool Empty() const
Is this storing anything at all?
This is a proxy from which rigid body proxys are handled.
This is simply a place for storing all the Physics Related functions.
RigidProxy * ProxA
The first Collidable this constraint applies to.
This is used to represent a point in space, or a vector through space.
RigidProxy * ProxB
The second Collidable this constraint applies to.
The bulk of the engine components go in this namspace.
This is used to store information about rotation in 3d space.
void SerializeError(const String &FailedTo, const String &ClassName, Boole SOrD)
Simply does some string concatenation, then throws an Exception.
Node AppendChild(NodeType Type=NodeElement)
Creates a Node and makes it a child of this one.
std::string String
A datatype used to a series of characters.
Attribute GetAttribute(const Char8 *Name) const
Attempt to get an Attribute on this Node with a given name.
Node GetChild(const Char8 *Name) const
Attempt to get a child Node with a given name.