Error Submitting Character Controller to Manager

rated by 0 users
This post has 4 Replies | 1 Follower

Top 25 Contributor
Posts 185
SunBurn_Contributor
SunBurn_Pro_Licensee
SunBurn_Studio_Licensee
Adam Kane Posted: 05-22-2012 7:09 PM

Hello,

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?

Thanks,
Adam

 

Top 25 Contributor
Posts 185
SunBurn_Contributor
SunBurn_Pro_Licensee
SunBurn_Studio_Licensee

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.

Top 10 Contributor
Posts 5,368
Employee
SunBurn_Studio_Licensee

Hi Adam,

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?

Thanks!

Follow me on Twitter – development and personal tweets
Awesome XNA Videos – Lighting, Rendering, and game videos

Top 25 Contributor
Posts 185
SunBurn_Contributor
SunBurn_Pro_Licensee
SunBurn_Studio_Licensee

Hi John,

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.

Thanks,
Adam

Top 10 Contributor
Posts 5,368
Employee
SunBurn_Studio_Licensee

Hi Adam,

No problem, if you do run into it again please let us know - thanks!

Follow me on Twitter – development and personal tweets
Awesome XNA Videos – Lighting, Rendering, and game videos

Page 1 of 1 (5 items) | RSS