NxSpringAndDamperEffector

themadme

27-02-2008 21:26:12

Ummm, I'm just new to using NxOgre, so forgive me for my poor knowledge but is there a NxSpringAndDamperEffector that NxOgre uses or does it only have NxJoints????

Reason why is because I'm trying to create hovering vehicles, and the NxSpringAndDamperEffector would be very useful to use.

I guess could use createFixedJoint, but I'm not sure it work correctly the way I would want it.

I would very appreciate if any one else has any ideas.

betajaen

27-02-2008 22:11:07

Nope, sadly it is not wrapped in NxOgre. But you can always use the PhysX code directly and work with the NxOgre classes, as long as you cast properly and don't use the NxActor/NxJoint userData.

themadme

27-02-2008 23:21:29

Thank you for your reply

betajaen

27-02-2008 23:29:15

sadeDesc.body1 = Racer->getActor();
sadeDesc.body2 = PulseArena->getActor();


return PhysicsScene->getNxScene()->createSpringAndDamperEffector(sadeDesc);

themadme

27-02-2008 23:49:02

i just found that out recently, ooops, should know my facts first before asking questions.

Thank you very much for your time.

hopefully it will work