Initial Commit: CC - Moorcow Start Scene, rotate ball (lwk5t658ne.js)
parent
1d7f54f153
commit
e7dedfbc41
|
@ -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
|
Loading…
Reference in New Issue