phyballandsocket.cpp
27 PhyBallAndSocket::PhyBallAndSocket( const wVector& centre, PhyObject* parent, PhyObject* child, bool cp )
74 priv->joint = NewtonConstraintCreateUserJoint( worldpriv->world, 6, PhyJointPrivate::userBilateralHandler, 0, priv->child, priv->parent );
115 NewtonUserJointAddLinearRow( priv->joint, &globalMatrixChild.w_pos[0], &globalMatrixParent.w_pos[0], &globalMatrixParent.x_ax[0] );
117 NewtonUserJointAddLinearRow( priv->joint, &globalMatrixChild.w_pos[0], &globalMatrixParent.w_pos[0], &globalMatrixParent.y_ax[0] );
119 NewtonUserJointAddLinearRow( priv->joint, &globalMatrixChild.w_pos[0], &globalMatrixParent.w_pos[0], &globalMatrixParent.z_ax[0] );
wMatrix localMatrixParent
Local frame of the joint respect to the parent matrix.
Definition: phyballandsocket.h:56
virtual wVector centre() const
Return the centre of this joint in world coordinate.
Definition: phyballandsocket.cpp:59
#define UNUSED_PARAM(a)
virtual wVector getForceOnJoint() const
Returns the force applied to this joint.
Definition: phyballandsocket.cpp:67
const wMatrix & matrix() const
return a reference to the transformation matrix
Definition: wobject.cpp:47
PhyBallAndSocket(const wVector ¢re, PhyObject *parent, PhyObject *child, bool cp=true)
Constructor.
Definition: phyballandsocket.cpp:27
void sanitifize()
change the matrix in order to get a valid one that represent the same rotation/translation ...
Definition: wmatrix.h:450
virtual PhyObject * parent()
Return the parent object; (NULL means an object attached to static world; see Netwon Documentation) ...
Definition: phyjoint.h:379
float real
wMatrix localMatrixChild
Local frame of the joint respect to the child matrix.
Definition: phyballandsocket.h:58
virtual void updateJointInfo()
Update the Joint informations (each PhyDOF will be updated)
Definition: phyballandsocket.cpp:79
virtual PhyObject * child()
Return the child object attached to this joint (see Newton Documentation)
Definition: phyjoint.h:371