Initial Commit: CC - Moorcow Start Scene, rotate ball (lwk5t658ne.js)

beta.r3js.org
-=yb4f310 2017-11-23 09:03:07 +01:00
parent 1d7f54f153
commit e7dedfbc41
1 changed files with 13 additions and 0 deletions

13
lwk5t658ne.js Normal file
View File

@ -0,0 +1,13 @@
var mesh = GameLib.EntityManager.Instance.findComponentById('5odj0hpf2z');
if (!this.initialized) {
this.initialized = true;
this.time = 0;
}
if (mesh) {
this.time += data.delta;
mesh.rotation.y = Math.sin(this.time);
mesh.updateInstance('rotation');
}
//@ sourceURL=CustomCode (lwk5t658ne).js