zmee
16-04-2009 20:28:50
Hi all,
I started using Ogre3D a couple weeks ago and now I need to use a physics engine, so, first, I picked PhysX, and then knew about NxOgre.
I came across some quetions in the process and would appreciate some help/guidance, so please, bear with me...
# 1:
I had some problems compiling NxOgre and I actually downloaded 2 diferent sources. The "problem" is, I don't know which NxOgre version I'm using right now, is there a way to know?
# 2:
I think I understand the diference between an Actor and a Body. The Actor is the "actual thing" in the scene, and the body is its representation. In the forum, I found two ways of creating an actor:
or
In the second one, we still specify the Cube shape... My question is, why do we still need to specify the Cube shape and wich one is used in collision detection (the cube shape, or the body actual body created with the specified nrp.mGraphicsModel)?
Thanks in advance
I started using Ogre3D a couple weeks ago and now I need to use a physics engine, so, first, I picked PhysX, and then knew about NxOgre.
I came across some quetions in the process and would appreciate some help/guidance, so please, bear with me...
# 1:
I had some problems compiling NxOgre and I actually downloaded 2 diferent sources. The "problem" is, I don't know which NxOgre version I'm using right now, is there a way to know?
# 2:
I think I understand the diference between an Actor and a Body. The Actor is the "actual thing" in the scene, and the body is its representation. In the forum, I found two ways of creating an actor:
_scene->createActor("Actor",new NxOgre::Cube(1.0),node->getPosition(),actorparams);
or
//actually, I couldn't compile the code with this one (yet :D)
_scene->createBody(nrp.mIdentifier,new NxOgre::Cube(1.0),node->getPosition(),nrp,NxOgre::ActorParams("mass: 10"));
In the second one, we still specify the Cube shape... My question is, why do we still need to specify the Cube shape and wich one is used in collision detection (the cube shape, or the body actual body created with the specified nrp.mGraphicsModel)?
Thanks in advance