I found a bug using prismatic joint with limits:
- Create static and dynamic rigid bodies at (0, 0, 0) and (4, 0, 0).
- Connect them with prismatic joint aligned with X-axis with limits(spring disabled). At this point everything works as expected.
- Rotate static body about an Y-axis through Pi/2. Bodies coords should be (0, 0, 0) and (0, 0, 4). And now we have a problem: dynamic body movement is locked to z-axis, but limits are not working. Dynamic body could be moved to infinity.
If I replace prismatic joint with D6 joint(configured as prismatic) - everything works fine.
After some experiments I discovered the following relationship: if I rotate static body in XZ-plane through an angle A, the closser A is to Pi/2 - the farther objects can move.
It looks like the problem is in limit check. Maybe it is done not in local space, but in projection onto X-axis.
I’m using PhysX 3.3.1, Windows 7 x64(but my application is x86)