Linux character controller problem

SpaceDude

12-01-2008 16:57:42

I feel a bit guilty coming to ask questions on this forum when actually I'm not using NxOgre but using Ogre and PhysX directly (I hope you don't mind :oops:).

I'm having an issue with my character controller on linux. Everything is working perfectly on windows, but recently I just tried compiling my game on linux and everything seems to work except that the player falls straight through the ground. Other actors such as weapons don't seem to have this problem, and I know the raycasting is working too, so I don't think its an issue with the floor.

Has anybody else encountered any differences between running PhysX on windows and linux running into similar problems?

The other thing is that debug rendering doesn't appear to work in linux either when I set the following:

m_PhysicsSDK()->setParameter(NX_VISUALIZE_COLLISION_SHAPES, 1);

:evil:

betajaen

12-01-2008 18:16:19

NxCharacters don't collide with NxGroundShapes and you should be using NxOgre.

SpaceDude

12-01-2008 19:02:54

The ground is modelled as a NxTriangleMeshShape, besides it's a linux-only problem and its too late in for me to switch to using NxOgre.

betajaen

12-01-2008 19:45:02

Hmm. Is it possible to get your character to stand on a big flat box and see if it collides horizontally with the NxTriangleMeshShape like walls or such?

SpaceDude

12-01-2008 21:18:51

I've done some more experimenting and it seems that it's not always falling through. Sometimes contact is made, but most of the time not. For example the player is able to walk up a few stairs in a stair case and then falls through. I actually managed to visualise the triangles now with debug rendering (I'm not sure what was wrong before) and they seem fine. I tried with versions 2.7.3 and 2.7.2 of PhysX, the problem appears in both.

Have you been able to use character controllers on linux without problem? It seems to me that this must be a bug in the PhysX engine. I need to find a way to work around it...

SpaceDude

14-01-2008 10:17:18

Ok nevermind, it is indeed a bug with the PhysX library running under linux. I posted a message on http://devsupport.ageia.com/ and got the following reply:

firstly, your problem is not same to Ernesto's, yours is about CCT penetrates triangle mesh on Linux, which is a know issue for Linux in v2.7.x and now is fixed in v2.8.0.

I guess I have to wait for v2.8.0 :?