Game Development Community

Interesting Vehicle Behavior

by William Todd Scott · in Torque Game Engine · 05/06/2006 (5:20 pm) · 0 replies

Hi all,

I have been playing around with the helicopter resource in a mission with no terrain. When I start flying around I am getting the following error message:

Fatal: (c:\game programming\torqueengine\engine\sim\sceneobject.cc @ 276) Bad minCoord

At first I thought this was a problem with the mission area in a map with no terrain. However, this proved to not be the case. So, I started ouputing the vehicles position to the console to see what is happening. Here is an abbreviated list of the positions:

At first I am flying forward and everything looks good:
7.0, 25.0, 12.0
8.3, 25.0, 12.0
9.9, 25.0, 12.0
11.8, 25.0, 12.0
14.0, 25.1, 12.0
16.5, 25.1, 12.0
19.3, 25.1, 12.0
22.4, 25.1, 12.0
25.8, 25.1, 12.0
14.0, 25.1, 12.0
16.5, 25.1, 12.0
19.3, 25.1, 12.0
22.4, 25.1, 12.0
25.8, 25.1, 12.0

I keep flying forward and something interesting happens:
193.4, 25.9, 12.0
199.8, 26.5, 12.0
206.2, 25.3, 12.0
212.6, 28.2, 12.0
219.0, 20.7, 12.0
225.2, 50.9, 12.0
234.0, -385.4, 12.0 <============Yikes!
212.6, 28.2, 12.0
219.0, 20.7, 12.0
225.2, 50.9, 12.0
234.0, -385.4, 12.0 <============Yikes!
-297.4, 94428.8, 12.0 <============Yikes!
25494240.0, -4494750720.0, 11.8 <============Yikes!
Fatal: (c:\game programming\torqueengine\engine\sim\sceneobject.cc @ 276) Bad minCoord


Notice that the vehicle suddenly is set at a very wierd position and instantly causes the crash. Importantly, I did not touch the controls when this happend. So, there is no reason why my velocity or forces would have suddenly gone out of control.

I am going to keep digging into this, but I wanted to see if anyone else had seen/experienced this or if anyone has any ideas as to what might cause this?

Thanks
Todd

edit: Small edits for clarity