How to use the loopOnce function from three
Find comprehensive JavaScript three.loopOnce code examples handpicked from public code repositorys.
GitHub: alan-wu/ZincJS
119 120 121 122 123 124 125 126 127 128
this.animationClip = THREE.AnimationClip.CreateClipsFromMorphTargetSequences( morphAttribute, 10, true); if (this.animationClip && (this.animationClip[0] != undefined)) { this.clipAction = this.mixer.clipAction(this.animationClip[0]).setDuration( this.duration); this.clipAction.loop = THREE.loopOnce; this.clipAction.clampWhenFinished = true; this.clipAction.play(); } }
10
3
3
+ 14 other calls in file
three.Vector3 is the most popular function in three (22341 examples)