|
Stores transforms relative to it's parent. There is a seperate set
of these for each of the keyframes.
Need matrix, and quat+pos_vector versions
- The matrix versions would be used to transform verts.
- The quat_pos_vector versions will blend with other bones.
- The conversion to matrices will need to be cached.
- Use three arrays.
- rotation quats( an array of four elements ).
- translation quats(array of four elements ).
TODO: find if a quatRotation quatTranslation is equal to a
matrixRotation matrixTranslation.
|
Methods
|
|
Update
|
|
|
Update
|
Update ( self, milk_bone )
From the milkshape data transform it into an internal representation.
milk_bone - a bone from the converter.
Convert the Euler angle milkshape rotations into quaternions.
- Convert the milkshape positions into quaternions.
Q(Px, Py, Pz, w =0.0)
- rotation, position quaternions multiplied and stored.
|
|