Path Joint

Hi,

I wish to simulate a train moving along the tracks and for that I need to move objects (wagons connected with joints) along the path (the track). I need some kind of a “path joint” or constraint that will keep the wagons on the path while they are being pulled.I don’t think it can be done with the D6 joint alone. Is there an interface for such joint/contraint in PhysX? Or a way to implement it myself?

Thanks

Hi,

Have you looked at PxPrismaticJoint? That should do what you describe. I’m guessing you will want to update the joint for each stretch of rail to reflect the change of direction of the track.

Cheers,

Gordon

I ended up implementing my own joint type basing on joints code from the SDK, but thanks for the reply.

Cheers,
Tom