MCPcopy Create free account
hub / github.com/esengine/esengine / addJoint

Function addJoint

scripts/test-animation-times.mjs:150–158  ·  view source on GitHub ↗
(jointIndex)

Source from the content-addressed store, hash-verified

148 const processingOrder = [];
149
150 function addJoint(jointIndex) {
151 if (processed.has(jointIndex)) return;
152 const joint = joints[jointIndex];
153 if (joint.parentIndex >= 0 && !processed.has(joint.parentIndex)) {
154 addJoint(joint.parentIndex);
155 }
156 processingOrder.push(jointIndex);
157 processed.add(jointIndex);
158 }
159
160 for (let i = 0; i < boneCount; i++) addJoint(i);
161

Callers 1

calculateBoneMatricesFunction · 0.70

Calls 3

hasMethod · 0.65
pushMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected