Relationship between SceneObject and Entity
I am able to create SceneObjects and view them:
val sceneObject = SceneObject(scene, mesh, "foo-object")
sceneObject.setPosition(x,y,z)
sceneObject.setVisible(true)
But I want to add this object to the ECS scene graph. I thought maybe the "entity" parameter specified the parent:
val sceneObject = SceneObject(scene, mesh, "foo-object", parentEntity)
but it does NOT seem to inherit the parentEntity transform.
I have also tried using the Entity.create() method to include the sceneObject:
Entity.create(listOf(SceneObject(scene, mesh, "foo-object"), ...)))
but this won't even compile (I assume because SceneObject is not a "component"?).
I really don't see how to include SceneObject's into a scene graph? How does this work? What it the "entity" parameter for the SceneObject constructor?
