Version 6, last updated by clauchiorean at April 17, 2008 11:05 UTC

Base class: Can be extended and added different types of joinst:

Types:

  • revolute  (1 DOF rotation )
  • prismatic (1 DOF translation )

Data:

  • local and world matrices :
    • Matrix34 class (represents translation and rotation) / vector (position) + quaternion (rotation) ?
    • world matrix needs to be updated according to parrent matrix         
  • a list of degree of freedoms
  • list of child ids  // list of child pointers ? (which is better)
  • parent pointer
  • name
  • id
  • skeleton pointer
  • mesh (vertex data , how the bone looks like)
  • user data //any info that the user finsd usefull for this joint

Functions:

  • update -> updates the world matrix
  • draw
  • load (load the bone from file or something)
  • children operations:
    • find
    • add
    • delete
  • transformations:
    • rotation
    • translation
    • scale

 Links: