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

Function sampleCurveAtT0

scripts/verify-anim-t0.mjs:266–269  ·  view source on GitHub ↗
(curve)

Source from the content-addressed store, hash-verified

264}
265
266function sampleCurveAtT0(curve) {
267 if (!curve || !curve.keyValues || curve.keyValues.length === 0) return 0;
268 return curve.keyValues[0]; // Value at first keyframe (t=0)
269}
270
271// For each curveNode, sample at t=0
272const sampledTransforms = new Map();

Callers 1

verify-anim-t0.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected