Panda3D
|
Retargets one or more animation files from one particular skeleton to a similar, but differently scaled skeleton by preserving the rotation information but discarding translation and/or scale. More...
#include "eggRetargetAnim.h"
Public Member Functions | |
void | retarget_anim (EggCharacterData *char_data, EggJointData *joint_data, int reference_model, const pset< string > &keep_names, EggCharacterDb &db) |
Recursively replaces the scale and translate information on all of the joints in the char_data hierarchy wiht this from reference_char. | |
void | run () |
Public Attributes | |
vector_string | _keep_joints |
Filename | _reference_filename |
Retargets one or more animation files from one particular skeleton to a similar, but differently scaled skeleton by preserving the rotation information but discarding translation and/or scale.
Definition at line 36 of file eggRetargetAnim.h.
void EggRetargetAnim::retarget_anim | ( | EggCharacterData * | char_data, |
EggJointData * | joint_data, | ||
int | reference_model, | ||
const pset< string > & | keep_names, | ||
EggCharacterDb & | db | ||
) |
Recursively replaces the scale and translate information on all of the joints in the char_data hierarchy wiht this from reference_char.
Definition at line 144 of file eggRetargetAnim.cxx.
References EggJointData::get_frame(), EggComponentData::get_model(), EggCharacterData::get_num_frames(), EggComponentData::get_num_models(), EggComponentData::has_model(), and EggCharacterDb::set_matrix().