We're using the built in character controller. Lately, whenever making any modifications to the scene via the editor, the character controller stops working. It's throwing a Not-a-Number exception internally:
Any ideas what we might be doing wrong?
Got it sorted. The world matrix of the scene object being submitted was getting saved with NAN rotation values when exiting the editor. Now we start the character controller from a fixed spawn point, so all is well.
We're trying to reproduce this, but are not having any luck. If I understand correctly the player object and its player controller are saved with the scene - and start in the same position it was in when the scene was last saved.
Is there anything we're doing wrong in the setup?
Follow me on Twitter – development and personal tweetsAwesome XNA Videos – Lighting, Rendering, and game videos
What you describe seemed to have been the problem, but we had a few other mistakes mixed in there as well. After cleaning up the code, and starting from a fixed spawn point, we haven't had any issues. Sorry I don't have better repro details.
No problem, if you do run into it again please let us know - thanks!