patie
18-03-2007 05:04:40
what i want in my project is a rigid link between two bodies, how do i attach two bodies together ?
thanks
nikhil
18-03-2007 08:26:58
OgreNewt::PrebuiltCustomJoints::CustomRigidJoint (newtBody1, newtBody2, pos1, pos2);
do some research on this.. i think this is what you want..
patie
18-03-2007 17:56:05
I just tired that and the CustomRigidJoint isn't rigid at all, my object attached on top of the master one keeps spinnig freely, just like a ball and socket !?
OgreNewt::Joint* lien;
lien = new OgreNewt::PrebuiltCustomJoints::CustomRigidJoint(cover,bod,Ogre::Vector3(0,0,1),m_Position);
From what i found the dir param should not influence anything , is it normal for this joint to do that?
screenshot from the app
currently what it shows is that the "sheetmetal" is attached at it's center to the car and it spins around freely. on the screenshot you can see it's unaligned with the car (the box is "the" body of the car )
walaber
18-03-2007 23:29:52
the rigid joint works... but I think you are approaching the problem from the wrong say... please see my other post for you about the materials on vehicles.