Support Forum       Library Source       SourceForge Page       G3D Web Page     
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
G3D::MD3Model::Pose Class Reference

Animation pose based on AnimType and animation time. More...

Public Member Functions

 Pose ()
 

Public Attributes

AnimType anim [NUM_ANIMATED_PARTS]
 
bool castsShadows
 
Matrix3 rotation [NUM_PARTS]
 Applying a rotation rotates this part and everything attached to it relative to its parent.
 
Skin::Ref skin
 If NULL, use the model's default skin.
 
GameTime time [NUM_ANIMATED_PARTS]
 

Detailed Description

Animation pose based on AnimType and animation time.

Each animation time ( legsTime and torsoTime ) is total time in the current animation which allows for looping based on the parameters in animation.cfg.

The skins must be the base name of each skin file found in the same directory as the model parts.

Textures for each skin are loaded on first use.

Constructor & Destructor Documentation

G3D::MD3Model::Pose::Pose ( )

Member Data Documentation

AnimType G3D::MD3Model::Pose::anim[NUM_ANIMATED_PARTS]
bool G3D::MD3Model::Pose::castsShadows
Matrix3 G3D::MD3Model::Pose::rotation[NUM_PARTS]

Applying a rotation rotates this part and everything attached to it relative to its parent.

Rotations are typically used to make the torso point towards a target or the head in the look direction.

Skin::Ref G3D::MD3Model::Pose::skin

If NULL, use the model's default skin.

GameTime G3D::MD3Model::Pose::time[NUM_ANIMATED_PARTS]

documentation generated on Sat Jan 12 2013 22:49:56 using doxygen 1.8.2