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

Function sampleAtT0

scripts/test-animation-t0.mjs:57–64  ·  view source on GitHub ↗
(sampler, componentCount)

Source from the content-addressed store, hash-verified

55
56 // Sample animation at t=0
57 function sampleAtT0(sampler, componentCount) {
58 if (!sampler.output || sampler.output.length === 0) return null;
59 const result = [];
60 for (let i = 0; i < componentCount; i++) {
61 result.push(sampler.output[i]);
62 }
63 return result;
64 }
65
66 // Get animated transforms at t=0
67 const animTransforms = new Map();

Callers 1

mainFunction · 0.85

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected