21 #include "private/phyjointprivate.h"
22 #include "private/phyobjectprivate.h"
23 #include "private/worldprivate.h"
34 priv =
new PhyJointPrivate();
41 priv->parent = parentpriv->body;
44 childpriv = child->
priv;
45 priv->child = childpriv->body;
54 #ifdef WORLDSIM_USE_NEWTON
55 NewtonDestroyJoint( worldpriv->world,
priv->joint);
PhyJoint(PhyObject *parent, PhyObject *child)
Constructor.
void enable(bool b)
enable/disable the joint
World * world()
Return the world.
PhyObjectPrivate * priv
Engine encapsulation.
PhyObject * childv
child object
QVector< PhyDOF * > dofsv
vector of DOF's joint
PhyObject * parentv
parent object
PhyJointPrivate * priv
Engine encapsulation.
virtual ~PhyJoint()
Destructor.
virtual PhyObject * parent()
Return the parent object; (NULL means an object attached to static world; see Netwon Documentation) ...
bool enabled
true if is enabled, false otherwise
virtual PhyObject * child()
Return the child object attached to this joint (see Newton Documentation)