2018-04-10 15:48:32 +02:00
|
|
|
this.topBall = R3.EntityManager.Instance.findComponentById('695azmtv94');
|
|
|
|
this.bottomBall = R3.EntityManager.Instance.findComponentById('rseer60cqb');
|
2017-11-23 09:32:25 +01:00
|
|
|
|
|
|
|
if (!this.initialized) {
|
|
|
|
this.initialized = true;
|
|
|
|
this.time = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.topBall) {
|
|
|
|
this.time += data.delta;
|
|
|
|
this.topBall.rotation.y = Math.sin(this.time);
|
|
|
|
this.topBall.updateInstance('rotation');
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.bottomBall) {
|
|
|
|
this.time += data.delta;
|
|
|
|
this.bottomBall.rotation.y = Math.cos(this.time);
|
|
|
|
this.bottomBall.updateInstance('rotation');
|
|
|
|
}
|
|
|
|
|
|
|
|
//@ sourceURL=CustomCode (g6xexa5e4c).js
|