huydotnet
09-11-2009 04:47:53
Hi everybody
I have a simple question
I want to create a joint to connect two object like this
and this is my code
but here is result:
the 2nd bar and joint is at center of 1st bar, i want it look like the first image
please help me
I have a simple question
I want to create a joint to connect two object like this
and this is my code
NxOgre::RevoluteJointDescription descr;
descr.mLocalAnchor[0] = NxOgre::Real3(0, 0, 0);
descr.mLocalAnchor[1] = NxOgre::Real3(0, 0.5, 0);
descr.mLocalAxis[0] = NxOgre::Real3(0, 1, 0);
descr.mLocalAxis[1] = NxOgre::Real3(0, 1, 0);
descr.mLocalNormal[0] = NxOgre::Real3(0, 0, 1);
descr.mLocalNormal[1] = NxOgre::Real3(0, 0, 1);
NxOgre::RevoluteJoint* rj = mScene->createRevoluteJoint(mCube, mCube2, descr);
but here is result:
the 2nd bar and joint is at center of 1st bar, i want it look like the first image
please help me