Skip to content

Commit

Permalink
modified jsm/animation folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno-Bells committed Oct 29, 2022
1 parent 152a1f6 commit 8abe53b
Show file tree
Hide file tree
Showing 2 changed files with 1,900 additions and 12 deletions.
3 changes: 1 addition & 2 deletions examples/webgl_3D_model_animation.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@

# Animations
animations = gltf.animations
print(len(animations))

mixer = AnimationMixer( model )

Expand Down Expand Up @@ -137,7 +136,7 @@
window.requestAnimationFrame( animate )
mixerUpdateDelta = clock.getDelta()
N_time = - window.performance.now() / 1000
# make the backeground (this will create a walking illusion)
# make the backeground move backwards (this will create a walking illusion)
mesh.position.z = + ( N_time ) % 2
mixer.update( mixerUpdateDelta )
renderer.render( scene, camera )
Expand Down
Loading

0 comments on commit 8abe53b

Please sign in to comment.