Oceax
14-06-2009 15:03:01
Using [BloodyMess 1.5.4]
Im trying to setup an aircraft object in my game with a more complex structure than usual for me.
When the object is constructed, a blueprint is read and the different parts setup according to it. And it works great if all parts are just physical or just non physical.
The problem is using both nxBodys and simple Ogre sceneNodes in the same game object and also set and make them retain their relative positions to eachother. How can i do that? Or do i have to use actors with joints for everthing in the game object even if its not desired? (nodes for particleSystems, nodes to attache other objects, nodes with entitys without physics)
In the image below, the particleNode is a child node of aircraftBody´s sceneNode (i use nxBody->getSceneNode(); to get aircraftBodys sceneNode). But it dosnt matter where i try to place the particleNode relative to its parent, its allways in the middle of its parent (but it follows when the parent moves). I also tried to have the flaps connected as child nodes without physics but then i couldnt see them at all.

(Link) How it looks in the game (particles should be at the propeller):
http://www.oceax.eu/aircraft2.jpg
Im trying to setup an aircraft object in my game with a more complex structure than usual for me.
When the object is constructed, a blueprint is read and the different parts setup according to it. And it works great if all parts are just physical or just non physical.
The problem is using both nxBodys and simple Ogre sceneNodes in the same game object and also set and make them retain their relative positions to eachother. How can i do that? Or do i have to use actors with joints for everthing in the game object even if its not desired? (nodes for particleSystems, nodes to attache other objects, nodes with entitys without physics)
In the image below, the particleNode is a child node of aircraftBody´s sceneNode (i use nxBody->getSceneNode(); to get aircraftBodys sceneNode). But it dosnt matter where i try to place the particleNode relative to its parent, its allways in the middle of its parent (but it follows when the parent moves). I also tried to have the flaps connected as child nodes without physics but then i couldnt see them at all.
(Link) How it looks in the game (particles should be at the propeller):
http://www.oceax.eu/aircraft2.jpg