Newbie: Can't use fixed joints

BigBulle

18-08-2006 23:19:51

Hello !

I started with nxOgre for a couple of days and I must say that it seems really intuitive and powerfull. Great work !
At the moment, I'm trying to use fixed joints but I can't see any result on the screen...
I'm using nxOgre 0.5 preview 3 with Ogre 1.2.2 and PhysX 2.3.3. in VC8.

Here is my code:
myCube1 = mScene->createBody("myCube1", "ogrehead.mesh", new nxOgre::cubeShape(1.0f), 10.0f, Vector3(0,120,0));
myCube2 = mScene->createBody("myCube2", "ogrehead.mesh", new nxOgre::cubeShape(1.0f), 20.0f, Vector3(50,125,0));
mScene->createJoint(new nxOgre::joint(nxOgre::joint::FIXED_JOINT, myCube1,myCube2));


I would like that the two heads are glued together but they move totally independently.

What am I doing wrong?
I'm sure that it's a noob's question but I could not find the answer (perhaps it was a noob's search)...

Thanks a lot,

BigBulle

betajaen

18-08-2006 23:37:37

Thanks, I'm glad you like it.

As for joint problem, it's because your not actually creating a joint there.

It's :
new fixedJoint(myCube1, myCube2, jointPosition)


I don't think Preview 3 has the fixedJoint class in it, so you may have to use the CVS instead.

BigBulle

18-08-2006 23:53:39

Thanks a lot !!
I 'll try that !

BigBulle

19-08-2006 00:38:13

It works now with CVS version and with PhysX2.4.4

Thanks a lot!

M@gg!

19-08-2006 07:30:17

Hello !

I started with nxOgre for a couple of days and I must say that it seems really intuitive and powerfull. Great work !.


Yea, Betajaen does a great work.

At the moment nxOgre is IMHO far from release, so don't expect it to powerfull. The are a lot of importent things still not implemented.

But it will be if Betajaen keeps going on!

The good thing is, that you can use PhysX in combination with nxOgre and program missing functionality by your own.

betajaen

19-08-2006 09:28:12

I wouldn't call it to powerful, but rather less complicated features usually in the prefab system - missing or incomplete.

However the core side of NxOgre has never been more complete or stable than before.