I have a problem which is apparently related to NewtonSetPlatformArchitecture. I have yet to reproduce the error as a simple example, but I figured posting may help me solve this problem quicker.
Using the latest beta and setting NewtonSetPlatformArchitecture(world, 2), I set up a scene with:
1. a slanted floor (static box) rotated about 45 degrees around the axis (1,0,1)
2. a cube with a gravitational force applied positioned directly above the floor, without any rotation
When the cube hits the floor, my transform callback gets called with all the position elements of the matrix equal to NAN, e.g.
- Code: Select all
1, 0, 0, 0
1, 0, 0, 0
0, 1, 0, nan
nan, nan, 1, 1
The position doesn't change thereafter. If I remove the call to NewtonSetPlatformArchitecture, the problem goes away. The problem doesn't occur when the floor is not rotated, or rotated around either the x or the z axis.
I would like to ask what the different modes currently are, and if anyone has any idea why this would be happening.
Thanks.