From e7dedfbc413d97662039a1218ea08bee01a3c2bf Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Thu, 23 Nov 2017 09:03:07 +0100 Subject: [PATCH] Initial Commit: CC - Moorcow Start Scene, rotate ball (lwk5t658ne.js) --- lwk5t658ne.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lwk5t658ne.js diff --git a/lwk5t658ne.js b/lwk5t658ne.js new file mode 100644 index 0000000..fbc03e8 --- /dev/null +++ b/lwk5t658ne.js @@ -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 \ No newline at end of file