How to use the QuaternionLinearInterpolant function from three
Find comprehensive JavaScript three.QuaternionLinearInterpolant code examples handpicked from public code repositorys.
GitHub: webaverse/app
341 342 343 344 345 346 347 348 349 350
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); const boneInterpolant = new THREE.QuaternionLinearInterpolant(track.times, track.values, track.getValueSize()); boneQuaternionInterpolants[boneName] = boneInterpolant; } else if (/\.scale$/.test(track.name)) { if (allOnesEpsilon(track.values)) { const index = tracks.indexOf(track);
223
301
0
+ 3 other calls in file
three.Vector3 is the most popular function in three (22341 examples)