25 INLINE
int EggJointData::
26 get_num_children()
const {
27 return _children.size();
34 get_child(
int n)
const {
35 nassertr(n >= 0 && n < (
int)_children.size(),
nullptr);
46 if (joint ==
nullptr) {
47 joint = find_joint_matches(name);
60 return _has_rest_frame;
70 return _rest_frames_differ;
92 _new_parent = new_parent;
void reparent_to(EggJointData *new_parent)
Indicates an intention to change the parent of this joint to the indicated joint, or NULL to remove i...
bool rest_frames_differ() const
Returns true if the rest frames for different models differ in their initial value.
bool has_rest_frame() const
Returns true if the joint knows its rest frame, false otherwise.
const LMatrix4d & get_rest_frame() const
Returns the rest frame of the joint.
This is one node of a hierarchy of EggJointData nodes, each of which represents a single joint of the...
EggJointData * find_joint(const std::string &name)
Returns the first descendent joint found with the indicated name, or NULL if no joint has that name.