Sinking Vehicles?
by Neil Marshall · in Torque Game Engine · 07/05/2003 (11:51 am) · 24 replies
Does anyone else have problems with vehicles sinking into the ground when they're stopped?
Sometimes it only goes in a little bit, but other times my vehicle will be sitting there going down until the tire drops through the landscape. The actual car remains above ground though, it's just one of the tires. Does anyone know what may be causing this?
I tried changing the col-1 object on the tire to be more cyllindrical (It was a box) but that didn't fix it. So now I'm thinking that it's one of the settings on the tires that is doing it, but I'm not sure. Anyone have any suggestions?
Sometimes it only goes in a little bit, but other times my vehicle will be sitting there going down until the tire drops through the landscape. The actual car remains above ground though, it's just one of the tires. Does anyone know what may be causing this?
I tried changing the col-1 object on the tire to be more cyllindrical (It was a box) but that didn't fix it. So now I'm thinking that it's one of the settings on the tires that is doing it, but I'm not sure. Anyone have any suggestions?
#2
07/05/2003 (12:03 pm)
A head version from a couple weeks ago actually. Would that still have the problem?
#3
-Ed
07/05/2003 (12:44 pm)
Are you using MS3D or 3DSMAX to make your vehicle. You might post a link to the model so folks can take a look at it.-Ed
#4
Okay, it's a bike though, so if you just use the default code it will probably flop on it's side.
I've put a copy of my car.cs up there as well. I'm not sure if it will work in the example, it should, but I have modified some things in the engine so no promises (Nothing to do with the hit detection or anything).
www.eightlines.com/neil/game/
07/05/2003 (12:54 pm)
Max 5.1. Okay, it's a bike though, so if you just use the default code it will probably flop on it's side.
I've put a copy of my car.cs up there as well. I'm not sure if it will work in the example, it should, but I have modified some things in the engine so no promises (Nothing to do with the hit detection or anything).
www.eightlines.com/neil/game/
#5
Note: You should probably drop your max model there so folks can load it and see what is up with the model itself.
07/05/2003 (1:04 pm)
Darn. I'm an 'on the cheap guy' meaning I don't have MAX (yet). However, I wanted you to post the link anyway because it will make it much easier folks (w/ max) to help you. Very sorry I can't do much with this. I'll look at the car.cs though. Note: You should probably drop your max model there so folks can load it and see what is up with the model itself.
#6
07/05/2003 (1:18 pm)
Has anyone had a chance to look into this?
#7
07/05/2003 (1:49 pm)
I have this problem even with the bravetree car/warsparrow, only on terrain though. It seems to happen against "pointy" vertexes in the terrain, usually on hills.
#8
07/05/2003 (2:27 pm)
I have the same problem with BraveTree's WarSparrow :(
#9
07/05/2003 (3:44 pm)
Can you give a screenshot of the problem?
#11
I just tryed your bike with my game and it is not sinking. The only thing I didn't used is your cs so it's something in the cs, not in your model. I'll try to see what is different in mine.
07/05/2003 (7:40 pm)
Neil,I just tryed your bike with my game and it is not sinking. The only thing I didn't used is your cs so it's something in the cs, not in your model. I'll try to see what is different in mine.
#12
Good luck !
Gilles Jr
07/05/2003 (8:14 pm)
Ok, I think it's a spring prob. Try something like this :length = 0.80; // Suspension travel force = 4300; // Spring force (Seems to be good at 10000 * length) damping = 6000; // Spring damping - makes you bounce really high if set high antiSwayForce = 2; // Lateral anti-sway forceCredits goes to my brother Eric as I'm really bad with vehicle setups and I don't know what I'm talking about here :) In our config, our front wheel and back wheel setup are separated so I'm not sure those settings will be good for you, but play with it to your needs. This is the only change I've made (following your cs) that could reproduce your sinking problem.
Good luck !
Gilles Jr
#13
07/05/2003 (8:23 pm)
Unfortunatly those settings make it impossible to drive :( That and the tires look really wrong. If I lower the length of the springs to make the tires look right, then the bike just bounces around.
#14
07/05/2003 (8:26 pm)
Hmm, ok I will try your cs then :) Probably one wheel setup is different. Let me a couple of min
#15
07/05/2003 (8:29 pm)
Actually, when I change only the force of the spring to 4300 (from 1500) then it appears to fix the problem. I still have to test a little to see if it's fixed 100%.
#16
07/05/2003 (8:40 pm)
I just tryed with you cs (no change) and it doesn't sink ?! Only weird thing is that it "jitter" a little when stopped. That's weird !
#17
07/06/2003 (7:26 am)
Yeah, on mine it even jitters in observer mode. I don't know what's up with that either.
#18
-Ed
07/06/2003 (11:06 am)
@Neil - Sorry, but I got tied up looking at some other stuff and did not get to look at your script. However, it looks like some good folks are on the task. I didn't want you wonder..."When is that guy Ed going to get back to me on this?"-Ed
#19
07/06/2003 (11:07 am)
Numerical instability in the physics code. Keep on tweakin', it might go away ;)
#20
07/06/2003 (11:11 am)
I was afraid it meant more tweaking. I really wish there was a way to test the values without exiting and loading it back up again.
Torque Owner Mike Stoddart