KennyUK
20-02-2008 14:19:44
I am creating a 3d platform game using Ogre, OgreNewt and Maya as my 3D tool. As my game is made up of lots of small levels, I have made it so level construction is done completely in Maya. Currently I use the LFA scene manager to export the level to a .scene XML file and then when I load it I look for special flags in this file to set up the physics bodies for nodes that need them. This means I don't need any level-specific loading code.
This method is working well, but now I would like to have solid platforms in my levels that move on a predefined path, that my character can stand on. Again, I want to define this behaviour completely from within Maya.
I have discovered one method whereby I create a simple motion path animation in Maya and then use the native Ogre exporter to create a .anim file based on node positions at certain times.Then I will be able to parse this file and create Ogre Animation classes based on the contents.
However, am I right in saying that I can not animate objects like this if they have physics bodies attached to them? I guess this is the case because if the Ogre SceneNode is moved then the OgreNewt body will not know about this. Therefore do I need to apply forces to the bodies to animate them instead?
If that is the case then it's surely going to be a real pain to have any sort of complex path that the platform moves along!
Any suggestions will be much appreciated!
Cheers
This method is working well, but now I would like to have solid platforms in my levels that move on a predefined path, that my character can stand on. Again, I want to define this behaviour completely from within Maya.
I have discovered one method whereby I create a simple motion path animation in Maya and then use the native Ogre exporter to create a .anim file based on node positions at certain times.Then I will be able to parse this file and create Ogre Animation classes based on the contents.
However, am I right in saying that I can not animate objects like this if they have physics bodies attached to them? I guess this is the case because if the Ogre SceneNode is moved then the OgreNewt body will not know about this. Therefore do I need to apply forces to the bodies to animate them instead?
If that is the case then it's surely going to be a real pain to have any sort of complex path that the platform moves along!
Any suggestions will be much appreciated!
Cheers