WhitestormJS / react-whs

WhitestormJS React integration ⚛

Home Page:https://whsjs.readme.io/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Animations with Loop

albertpeiro opened this issue · comments

What's the main pattern we can use for animations with Loop?

Been playing with this:
https://whs.io/Loops%20&%203D%20Animation.html

const app = new WHS.App([
  // ...
]);

new WHS.Loop(() => {
  box.rotation.y += 0.02;
}).start(app);

But having trouble grabbing the references for app and component