• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

PhysX Joints!

false3d

n00b
Joined
Nov 16, 2006
Messages
3
Hi. I've trouble with joints at PhysX SDK 2.3

I create NxRevoluteJoint, but it is not working correctly.

Can someone post here some simple code to show me ideal declaration of this joints. :confused:
 
Well SDK 2,5 is out now.

But I think you get more response on the Developers support discusion form of Ageia site.
There are the experts. But I think there is a 2.3 section to.
But it's all not public. It's for registerd members.
 
In the 2.4 sdk there are pleanty of examples and going from that it looks like you must do something like this:

Code:
NxRevoluteJointDesc	revDesc;
NxRevoluteJoint		*revJoint;

revDesc.actor[0] = createCube(0, 50, 0);
revDesc.actor[1] = createCube(2, 50, 2);

revDesc.setGlobalAxis( NxVec3(1.0, 0.0, 0.0) );
revDesc.setGlobalAnchor( NxVec3(1.0, 0.0, 0.0) );

revJoint = (NxRevoluteJoint *)gScene->createJoint(revDesc);

I just made up some vectors for axis/anchor, you are going to want to find out what they really should be set to by reading the docs. Seems you could also attach motors to these things to make them go on their own, but that requires a little more to setup.

edit: A motor requires you to setup these additional fields
Code:
	revDesc.motor.maxForce = 1000;
	revDesc.motor.velTarget = 10.0;
	revDesc.flags |= NX_RJF_MOTOR_ENABLED;
 
Ok, I've tried to do something like you've wrote, but... It works not correctly =(

setGlobalAxis - as I understand - this Axis is axis, the object rotates around. It must be normalized.

revDesc.setGlobalAnchor - WHAT IS IT!? Is this global position of central rotation point?




PS: Is there 2,5 version for free downloading?
 
http://cin.ufpe.br/~sbgames/proceedings/tutorials/SBGames06TC01_PhysX.pdf - this looks interesting as it's a bit easier to understand 3rd party comprehension of something. Seems anchor point is the coordinate where the hinge originates in your coordinate system. I'll see if I can get a little hinge going myself this time so I can really explain things.

As for whats the latest sdk I'm not sure, I have 2.4 right now and havent messed with it in quite a while.

Edit: I couldnt make much sense with revolute joints, but a spherical joint gave me the effect that I expected so I suppose my settings are correct. Good luck
 
Thanks a lot. I'll try it...

PS: with spherical - I've no problem but revolut... fffuuuhhhh. I'll try
 
Back
Top