MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / initialize

Method initialize

engine/source/runtime/function/animation/node.cpp:220–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218 Bone::Bone() : Node(std::string()) {}
219
220 void Bone::initialize(std::shared_ptr<RawBone> definition, Bone* parent_bone)
221 {
222 m_definition = definition;
223
224 if (definition)
225 {
226 m_name = definition->name;
227 setOrientation(definition->binding_pose.m_rotation);
228 setPosition(definition->binding_pose.m_position);
229 setScale(definition->binding_pose.m_scale);
230 m_inverse_Tpose = definition->tpose_matrix;
231 setAsInitialPose();
232 }
233 m_parent = parent_bone;
234 }
235
236 //---------------------------------------------------------------------
237 size_t Bone::getID(void) const

Callers 2

buildSkeletonMethod · 0.45
startSystemsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected