MCPcopy Create free account
hub / github.com/defold/defold / PoseToMatrix

Function PoseToMatrix

engine/rig/src/rig.cpp:712–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710 }
711
712 static void PoseToMatrix(const dmArray<BonePose>& pose, Matrix4* out_matrices)
713 {
714 uint32_t bone_count = pose.Size();
715 for (uint32_t bi = 0; bi < bone_count; ++bi)
716 {
717 out_matrices[bi] = dmTransform::ToMatrix4(pose[bi].m_World);
718 }
719 }
720
721 static void CommitPoseMatrixToCache(HRigContext context, HRigInstance instance)
722 {

Callers 3

CommitPoseMatrixToCacheFunction · 0.85
GenerateVertexDataFunction · 0.85

Calls 2

ToMatrix4Function · 0.50
SizeMethod · 0.45

Tested by

no test coverage detected