How do I get objects from a scene? I have a blender scene converted to j3o with a Race Track, and a Player Start object. I want to get the Player Start object from it, I load it in with Spatial course = assetManager.loadModel(“Scenes/course01/course01.j3o”);, how can I get sub objects?
That is getting it from a node, I need to convert a Spatial to a node to do that
Thanks, I was under the impression that you couldn’t cast a Spatial to a Node
It depends on if it’s a node or not. It might be a geometry… but probably not in your case.
Assignment compatibility = what types can be assigned to other types.
casting is tightly related to Assignment compatibility and its is different from type conversion.
I suggest to take a look at this course:
http://how-to-program-in-java.com/2016/08/01/java-casting-type-cast-tutorial/