How to use the NumberKeyframeTrack function from three
Find comprehensive JavaScript three.NumberKeyframeTrack code examples handpicked from public code repositorys.
2578 2579 2580 2581 2582 2583 2584 2585 2586 2587var TypedKeyframeTrack; switch (PATH_PROPERTIES[target.path]) { case PATH_PROPERTIES.weights: TypedKeyframeTrack = THREE.NumberKeyframeTrack; break; case PATH_PROPERTIES.rotation: TypedKeyframeTrack = THREE.QuaternionKeyframeTrack;
+ 14 other calls in file
2209 2210 2211 2212 2213 2214 2215 2216 2217 2218node.updateMatrix(); node.matrixAutoUpdate = true; let TypedKeyframeTrack; switch (PATH_PROPERTIES[target.path]) { case PATH_PROPERTIES.weights: TypedKeyframeTrack = three.NumberKeyframeTrack; break; case PATH_PROPERTIES.rotation: TypedKeyframeTrack = three.QuaternionKeyframeTrack; break;
1104 1105 1106 1107 1108 1109 1110 1111 1112 1113const values = []; for (let i = 0, il = array.length; i < il; i += 1) { times.push(array[i].frameNum / 30); values.push(array[i].weight); } tracks.push(new three_1.NumberKeyframeTrack('.morphTargetInfluences[' + morphTargetDictionary[key] + ']', times, values)); } return new three_1.AnimationClip('', -1, tracks); } /**
+ 4 other calls in file
GitHub: VeinKowal/veins
2509 2510 2511 2512 2513 2514 2515 2516 2517 2518node.matrixAutoUpdate = true; var TypedKeyframeTrack = void 0; switch (PATH_PROPERTIES[target.path]) { case PATH_PROPERTIES.weights: TypedKeyframeTrack = _three.NumberKeyframeTrack; break; case PATH_PROPERTIES.rotation: TypedKeyframeTrack = _three.QuaternionKeyframeTrack;
2512 2513 2514 2515 2516 2517 2518 2519 2520 2521}); var morphNum = sceneGraph.getObjectByName(rawTracks.modelName) .morphTargetDictionary[rawTracks.morphName]; return new THREE.NumberKeyframeTrack( rawTracks.modelName + '.morphTargetInfluences[' + morphNum + ']', curves.times, values, );
three.Vector3 is the most popular function in three (22341 examples)