Files
Leenkx_Examples/call_hx/Bundled/my_plugin.js
2026-05-06 17:52:45 -07:00

15 lines
248 B
JavaScript

// Call Plugin class exposed from Haxe
var plugin = new arm.Plugin();
plugin.hello();
var scene = plugin.scene();
var rot = 0.0;
plugin.update = function() {
rot += 0.01;
var o = scene.getChild("Cube");
o.transform.setRotation(0, 0, rot);
}