How to use the LinearInterpolant function from three
Find comprehensive JavaScript three.LinearInterpolant code examples handpicked from public code repositorys.
GitHub: webaverse/app
336 337 338 339 340 341 342 343 344 345
const tracksToRemove = []; for (const track of tracks) { if (/\.position$/.test(track.name)) { const boneName = track.name.replace(/\.position$/, ''); // const bone = bones.find(b => b.name === boneName); const boneInterpolant = new THREE.LinearInterpolant(track.times, track.values, track.getValueSize()); bonePositionInterpolants[boneName] = boneInterpolant; } else if (/\.quaternion$/.test(track.name)) { const boneName = track.name.replace(/\.quaternion$/, ''); // const bone = bones.find(b => b.name === boneName);
223
301
0
+ 3 other calls in file
three.Vector3 is the most popular function in three (22341 examples)