netsurferj
27-06-2008 16:38:31
Hi
I am trying to make my fps camera move using force, and would like to know how I can attach the camera to an Actor and apply force to the Actor? (And if this is Necessary)
thanx
xadh00m
30-06-2008 08:48:05
You could create a NxOgre::Body and attach the camera to its Ogre::SceneNode. The Body needs a collision shape so that the camera
collides implicitly... You could than add forces with addForce() to the body
betajaen
30-06-2008 09:14:40
netsurferj
30-06-2008 15:22:57
Thanx a lot. I'll do this later, I decided to start with an empty project instead of incorporating NxOgre into my exisiting project so I could understand it better. Am getting there
netsurferj
09-07-2008 14:56:38
Hi
I saw on a post that I can get a SceneNode using:
node = static_cast<OgreNodeRenderable*>(b->getRenderable())->getNode();
but this code does not work as there is no "getRenderable()" method in Actor or Body.
I do not completely understand the "custom actor" class.
I am using 0.9
thanx
betajaen
09-07-2008 15:18:38
"getNode" is part of Body in 0.9