Files
Leenkx_Examples/call_hx/Bundled/my_plugin.js
2026-10-25 12:04:24 -07:00

15 lines
248 B
JavaScript

// Call Plugin class exposed from Haxe
var plugin = new lnx.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);
}