Using a vehicle Control the function getPhysicsLocation() sometimes returns NaN for the X,Y & Z components. This seems to happen after a collision with another object, but collisions do not always produce this result.
Any ideas what is going on ?
Using a vehicle Control the function getPhysicsLocation() sometimes returns NaN for the X,Y & Z components. This seems to happen after a collision with another object, but collisions do not always produce this result.
Any ideas what is going on ?
Under what conditions would getPhysicsLocation() return Nan ?
I assume you mean it returns Vector3f with all NaNs in it… in which case, generally this would mean that there is an invalid rotation somewhere I guess… or your velocity went to infinity or NaN.
…something like that.
The velocity goes to NaN, How can this happen ?
Your rotations got screwed up and became invalid or you somehow added a force with 0 mass. Hard to say without seeing code or output or anything.
…starts to become a game of “How long is this piece of string I’m holding?”