poking around the scenegraph pattern implemented with EnTT
This commit is contained in:
parent
cea83d06e8
commit
1f390f5a4d
5 changed files with 86 additions and 27 deletions
|
@ -9,4 +9,13 @@ print("hello pixwerx!")
|
|||
|
||||
local s = pw.scene.new()
|
||||
|
||||
local e = pw.entity.new(s)
|
||||
|
||||
local e2 = pw.entity.new(s)
|
||||
|
||||
e.add_child(e2)
|
||||
|
||||
print(s)
|
||||
print(e.child_count)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue