tutorials are great but the only thing i can do is to have the whole scene from blender
imported as a whole physical level
Spatial ground = assetManager.loadModel("Scenes/Scene.j3o"); CollisionShape sceneShape = CollisionShapeFactory.createMeshShape((Node) ground); RigidBodyControl landscape = new RigidBodyControl(sceneShape, 0); ground.addControl(landscape); rootNode.attachChild(ground); bulletAppState.getPhysicsSpace().add(landscape);
1)is it possible to model
- the scene
- the objects the user interact with (goodies, power ups, ...)
- put everything in one blend file
and in the game having the landscape considered as a physical ground
but not the objects the user is supposed to grab ????
I want the player to get an object in inventory for instance
so far, the player hit the objects and is blocked by them cos they are globalized in the physical mesh as a whole
they should be kind of interacting non physical
2) do i have to parse the whole scene to add the right controllers to each kind of objects ?
the jme editor seems to deal with that, but as i start from blender wich is easier to model the whole scene,
i don't see how to deal with objects assigned with a particular controller depending on what object it is
how do i do that ?