r3-custom-code/lwk5t658ne.js

13 lines
295 B
JavaScript

var mesh = R3.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