Game Development Community

New Head Flying Vehicle Problem

by Tony Chamberlain · in Torque Game Engine · 02/03/2003 (11:43 pm) · 11 replies

I just grabbed the head Feb 3rd 2003, mainly because it had a major Vehicle code fix. Unfortunely it doesn't help me at all, more like it creates more problems.

Use too my flying vehicles would get stuck, and that was a problem. Now they can not only get stuck but pass through the terrain and interiors if you hit them at a decent speed. Wheeled vehicles seem to be ok, but the flying ones all seem to have this major bug.

I even brought the warsparrow package just to test it with that flying vehicle, they all do it.

#1
02/04/2003 (12:22 am)
Look at

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3800

they speak of this problem.
#2
02/04/2003 (12:27 am)
Did I miss anything, that link is the announcement link about the new code, no one mentions the wonderful flying through terrain and interiors fun I am having :)


It's a fresh head - just added vehicles to see how well it worked. I hope he can get this fixed - because I haven't a clue myself.
#3
02/04/2003 (12:45 am)
From Tim Gift
Quote:
These changes get rid of some annoyances, but have there own drawbacks. At each integration step, vehicles now step forward whatever their velocity is. These means that if a vehicle is traveling fast enough, the collision tolerance is low, and the integration rate is low, the vehicle may pass right through another object.
#4
02/04/2003 (8:23 am)
Ok, but every time? At a decent force of 3000+ I can do it, doesn't that about render it useless at that point, don't get me wrong I'm not programmer, so I can't fix it myself, but it would see this is a major problem for flying vehicles.
#5
02/04/2003 (9:29 am)
Add this :

integration = 4; // Physics integration: TickSec/Rate
collisionTol = 0.1; // Collision distance tolerance
contactTol = 0.1; // Contact velocity tolerance

to your flying vehicles .cs in the datablock. Not sure if all 3 are needed. I think integration is the one
#6
02/12/2003 (4:47 am)
Hiya,
This doesn't seem to fix the problem for me at speeds > 4000 (I still go through the ground).
I don't suppose anyone has got a work around for this? Also, what do those values actually specify?
Cheers for any help.
#7
02/12/2003 (4:10 pm)
This is a big problem. Sometimes the flying vehicle goes thru the terrain but it sometimes crashes my computer (not just the engine) when the flyer doesn't make it thru and gets stuck in the terrain.
#8
02/12/2003 (9:31 pm)
I agree this is a problem, I do hope this gets corrected. It render the flyers useless until it is (at least for me) - I wish I had enough brains to do it myself, I would complain too much about it, I just want people to be aware that it's an issue.
#9
02/13/2003 (10:27 am)
I don't play lot with flying vehicles in my current dev, but I tryed them enough to be sure it doesn't pass through terrain with these line in script. But I had made another little modif (I just remembers this, sorry) in flyingvehicle.cc that someone has suggest. It's working and don't crash the engine anymore since this change but I'm not sure if it's a good change for someones who's making a flying specific game. I'll try to find you the link of the thread with the changes as I don't want to take someone else credits for this :) Coming back with the link soon (hope)
#10
02/13/2003 (10:38 am)
Here it is :
www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=8810

Look Sebastiao solution. This solve crashing the engine.

Btw, the scripts are now required with the latest vehicles changes (HEAD). And without them, I was passing right thru terrain with flying vehicles. This solve this.
#11
02/13/2003 (11:17 am)
Hey thanks Gilles. I'll give the fix on that link a try tonight. Part of the problem I had was I initially pasted the additional datablock lines above in my .cs file and it put in a couple ones instead of lower case L's. I didn't notice it right away because they look almost the same when the letters and numbers aren't seperated. Doing a cut-n-paste from IE can be problematic.