Basic entity script
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
const e = Entity.create();
|
||||
const pos = e.add(Component.POSITION);
|
||||
pos.localPosition = new Vec3(-1, 0, 1);
|
||||
Console.print('Entity ID: ' + e.toString());
|
||||
Reference in New Issue
Block a user