This commit is contained in:
2026-05-06 17:52:45 -07:00
parent 9fc3f35125
commit 1463c23334
402 changed files with 3758 additions and 0 deletions

View File

@ -0,0 +1,23 @@
package lnx;
class SpawnTrait extends iron.Trait {
public function new() {
super();
notifyOnInit(function() {
// Spawn object from scene hierarchy, including children
iron.Scene.active.spawnObject("Cube", null, function(object:iron.object.Object) {
object.transform.loc.set(0, 4, 0);
object.transform.buildMatrix();
});
// Spawn single object from scene hierarchy
var spawnChildren = false;
iron.Scene.active.spawnObject("Cube", null, function(object:iron.object.Object) {
object.transform.loc.set(-4, 0, 0);
object.transform.buildMatrix();
}, spawnChildren);
});
}
}

Binary file not shown.