40 #ifndef _physicshinge2constraint_cpp
41 #define _physicshinge2constraint_cpp
43 #include "Physics/hinge2constraint.h"
44 #include "Physics/rigidproxy.h"
46 #include "stringtool.h"
49 #include <btBulletDynamicsCommon.h>
74 {
return static_cast<btHinge2Constraint*
>( this->
Generic6dof ); }
79 btVector3 TempOrigin(0,0,0);
80 btVector3 TempAxis1(0,1,0);
81 btVector3 TempAxis2(1,0,0);
101 { this->
Hinge2()->setUpperLimit(Ang1Max); }
104 { this->
Hinge2()->setLowerLimit(Ang1Min); }
113 {
return "Hinge2Constraint"; }
Hinge2Constraint(const UInt32 ID, RigidProxy *ProxyA, RigidProxy *ProxyB, const Vector3 &Anchor, const Vector3 &Axis1, const Vector3 &Axis2, PhysicsManager *Creator)
Convenience constructor.
virtual ~Hinge2Constraint()
Class destructor.
static String GetSerializableName()
Get the name of the the XML tag the class will leave behind as its instances are serialized.
virtual btHinge2Constraint * Hinge2() const
float Real
A Datatype used to represent a real floating point number.
The interface for serialization.
btVector3 GetBulletVector3() const
Gets a Bullet vector3.
A light-weight handle for manipulating nodes in DOM tree.
uint32_t UInt32
An 32-bit unsigned integer.
btGeneric6DofConstraint * Generic6dof
The internal constraint that this class encapsulates.
virtual btRigidBody * _GetPhysicsObject() const
Accessor for the internal rigid body physics proxy.
virtual String GetDerivedSerializableName() const
Gets the most derived serializable name of this Constraint.
virtual void SetUpperLimit(const Real AngelMax)
Convenience method for setting the maximum allowed turning angle.
This is a proxy from which rigid body proxys are handled.
This is simply a place for storing all the Physics Related functions.
This is used to represent a point in space, or a vector through space.
virtual void ProtoDeSerialize(const XML::Node &SelfRoot)
Take the data stored in an XML Node and overwrite this object with it.
virtual void SetLowerLimit(const Real AngelMin)
Convenience method for setting the minimum allowed turning angle.
The bulk of the engine components go in this namspace.
Creates a constraint as configurable as the 6Dof constraint, but has added support for spring motion...
virtual void CreateConstraint(RigidProxy *RigidA, RigidProxy *RigidB, const Transform &TransA, const Transform &TransB)
Creates the internal constraint.
std::string String
A datatype used to a series of characters.