PhyBallAndSocket class. More...

Inheritance diagram for PhyBallAndSocket:

List of all members.

Public Member Functions

 PhyBallAndSocket (const wVector &centre, PhyObject *parent, PhyObject *child, bool cp=true)
 Constructor.
virtual wVector centre () const
 Return the centre of this joint in world coordinate.
virtual void updateJointInfo ()
 Update the Joint informations (each PhyDOF will be updated)

Protected Member Functions

void createPrivateJoint ()
 Engine encapsulation.
virtual void updateJoint (real timestep)

Protected Attributes

wMatrix globalMatrixChild
 Global Matrix respect to Child.
wMatrix globalMatrixParent
 Global Matrix respect to Parent.
wMatrix localMatrixChild
 Local frame of the joint respect to the child matrix.
wMatrix localMatrixParent
 Local frame of the joint respect to the parent matrix.

Detailed Description

PhyBallAndSocket class.

A joint implementing the Ball-and-Socket joint

Definition at line 37 of file phyballandsocket.h.


Constructor & Destructor Documentation


Member Function Documentation

wVector centre ( ) const [virtual]

Return the centre of this joint in world coordinate.

Implements PhyJoint.

Definition at line 57 of file phyballandsocket.cpp.

References PhyBallAndSocket::globalMatrixParent, PhyBallAndSocket::localMatrixParent, WObject::matrix(), and PhyJoint::parent().

Referenced by PhyBallAndSocket::PhyBallAndSocket().

void createPrivateJoint ( ) [protected]

Engine encapsulation.

Definition at line 65 of file phyballandsocket.cpp.

References PhyJoint::priv.

Referenced by PhyBallAndSocket::PhyBallAndSocket().


Member Data Documentation

Global Matrix respect to Child.

This represent the local frame of joint in global coordinate starting from localMatrixParent representation.

Definition at line 70 of file phyballandsocket.h.

Referenced by PhyBallAndSocket::updateJointInfo().

wMatrix globalMatrixParent [mutable, protected]

Global Matrix respect to Parent.

This represent the local frame of joint in global coordinate starting from localMatrixParent representation.

Note: The differences between globalMatrixParent and globalMatrixChild are due to numerical error on joint solver of physic engine used.

Definition at line 64 of file phyballandsocket.h.

Referenced by PhyBallAndSocket::centre(), PhyBallAndSocket::PhyBallAndSocket(), and PhyBallAndSocket::updateJointInfo().

Local frame of the joint respect to the child matrix.

Definition at line 54 of file phyballandsocket.h.

Referenced by PhyBallAndSocket::PhyBallAndSocket(), and PhyBallAndSocket::updateJointInfo().

Local frame of the joint respect to the parent matrix.

Definition at line 52 of file phyballandsocket.h.

Referenced by PhyBallAndSocket::centre(), PhyBallAndSocket::PhyBallAndSocket(), and PhyBallAndSocket::updateJointInfo().


The documentation for this class was generated from the following files: