forked from LeenkxTeam/Leenkx_Examples
update
This commit is contained in:
14
call_hx/Bundled/my_plugin.js
Normal file
14
call_hx/Bundled/my_plugin.js
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
// 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);
|
||||
}
|
||||
Reference in New Issue
Block a user