tentone / nunuStudio

Web powered cross-platform 3D, WebXR game engine.
https://nunustudio.org
MIT License
2.12k stars 316 forks source link

using TweenJS #308

Open shantee opened 5 years ago

shantee commented 5 years ago

Hello, I don't know why I can't use twwen.js (https://github.com/twee njs/tween.js/) in Nunustudio but I already made it work in others threeJS project.

Do you have any example using this library ? (also having a real console, like in chrome would be really helpfull for debugging) Thanks for your help

shantee commented 5 years ago

I noticed something weird (well at least it is something I don't understand) I managed to make it work by adding [...] requestAnimationFrame(update) myTween.update(delta) [...] in my update function.

tentone commented 5 years ago

Hello

I have some bits of tweenjs inside of the nunuStudio source. It should be fairly simple to integrate:

It is a bit strange that you have to requestAnimationFrame separately for the tween.

I will try it out to see if i can put an example in the docs.

Thank you.

Cheers

andylewisart commented 4 years ago

+1 for seeing an example of tween.js at work. Thanks!