Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with collision checking
03-31-2009, 08:49 PM,
#2
 
You know, it's funny, I was just thinking that this could happen the other day, but hadn't tried it. There are two problems:
1) if the car is moving down really fast, it's possible for the wheel to get through the ground before the collision detection sees it, and then one or more wheels are just stuck there
2) if the car has a lot of downward momentum, and it causes the suspension to run out of travel, the suspension bottoms out but provides no further force and the car sinks into the ground momentarily

For 1 the way to fix this would be to make sure to check for collisions along the line formed by the current wheel patch contact position minus the previous wheel patch contact position, and force it to stop at any barriers.

For 2 there are a couple of options:
a) make all suspensions have (effectively) infinite travel regardless of what is in the .car specification -- would cause the car to very briefly go slightly under the ground and then bounce up some
b) make a "bumper" so when the spring bottoms out a much higher K spring kicks in -- a good option but can cause the car to really bounce high in the air after a big landing
c) if the suspension bottoms out, enforce staying on the ground by just moving the car up as needed -- this seems like a good option, I can't see any real problems with it but I haven't thought it through very far
Reply


Messages In This Thread
Problems with collision checking - by a_m0d - 03-31-2009, 08:02 AM
[No subject] - by joevenzon_phpbb2_import3 - 03-31-2009, 08:49 PM
[No subject] - by joevenzon_phpbb2_import3 - 03-31-2009, 08:54 PM
[No subject] - by a_m0d - 03-31-2009, 11:47 PM
[No subject] - by slowDan - 04-01-2009, 03:30 AM
[No subject] - by joevenzon_phpbb2_import3 - 04-02-2009, 09:00 PM
[No subject] - by alex25 - 04-02-2009, 09:17 PM
[No subject] - by a_m0d - 04-03-2009, 06:46 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-03-2009, 07:57 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-03-2009, 10:32 PM
[No subject] - by joevenzon_phpbb2_import3 - 04-03-2009, 10:36 PM
[No subject] - by alex25 - 04-03-2009, 11:34 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)