Character Controller mMove_MinDistance

Pottej

01-08-2007 16:33:57

Hey guys,

Whilst developing our game we found that we were getting really odd slow down problems when characters moved near dynamic objects. We think we have isolated the problem to the mMove_MinDistance being undefined in NxCharacter.cpp

We set it to 0.001 and it totally got rid of all frame rate issues. I just thought I'd mention here that I think itd be a good idea if this variable was included in the character parameters, and a sensible default set.

If we're just using the character controller wrong, please tell me :)

Pottej

betajaen

01-08-2007 16:58:53

Interesting find! I'll open it up and allow it as an option.

Pottej

01-08-2007 18:49:39

Cheers mate!

Aiursrage2k

01-08-2007 21:15:56

minDist is a minimal length used to stop the recursive displacement algorithm early when remaining distance to travel goes below this limit.

Pottej

04-08-2007 18:42:46

:roll:

Rhys

15-09-2007 18:58:48

Yeah, but due to the fact that it is not initialised, it can cause several problems...e.g. the character is not moving, because minDistance has a value near FLOAT_MAX...in that case, the NxPhysX Engine rejects the movement of the character ;)