Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Physics [split from network thread]
02-18-2007, 02:50 PM,
#7
 
I think thelusiv said this already, but just to reiterate, the vamos physics code (which is the car simulation stuff) is very fast and can run many cars at fast rates. I don't have exact numbers, but it should be fast enough for a dozen or so cars. It's currently iterating at 250 fps, which is way faster than we need, and could even be halved to increase performance if necessary. The really SLOW stuff at the moment, which causes multiple cars to be so slow, is the collision detection code. I end up casting a bunch of rays around (more than necessary) and use my own AABB spatial tree collider algorithm. Although my collider code is much faster than a naive implementation without any spatial sorting, it is not as fast as the ray to trimesh collision in ODE. In addition, ODE is more efficient and accurate when colliding a box with a trimesh (which I fake by casting a bunch of rays).

By the way, it looks to me like live for speed uses IK for the suspension geometry. I think reece146's suggestion is probably the best (coding up the suspension physics from his sources) if we want to fancy up the suspension code.
Reply


Messages In This Thread
[No subject] - by thelusiv - 02-14-2007, 06:20 PM
[No subject] - by stenyak - 02-14-2007, 06:57 PM
[No subject] - by thelusiv - 02-15-2007, 05:44 AM
[No subject] - by reece146 - 02-15-2007, 11:17 AM
[No subject] - by stenyak - 02-15-2007, 02:37 PM
[No subject] - by joevenzon_phpbb2_import3 - 02-18-2007, 02:50 PM
[No subject] - by reece146 - 02-18-2007, 07:00 PM
[No subject] - by thelusiv - 02-18-2007, 09:03 PM
[No subject] - by reece146 - 02-18-2007, 09:41 PM
[No subject] - by thelusiv - 02-19-2007, 03:25 AM
[No subject] - by stenyak - 02-19-2007, 08:01 AM
[No subject] - by joevenzon_phpbb2_import3 - 02-19-2007, 09:36 AM
[No subject] - by Nigo - 02-19-2007, 09:48 AM
[No subject] - by thelusiv - 02-19-2007, 11:02 AM
[No subject] - by rookie1 - 02-19-2007, 11:24 AM
[No subject] - by thelusiv - 02-19-2007, 12:56 PM
[No subject] - by rookie1 - 02-19-2007, 01:11 PM
[No subject] - by reece146 - 02-19-2007, 01:12 PM
[No subject] - by thelusiv - 02-19-2007, 01:42 PM
[No subject] - by stenyak - 02-19-2007, 01:54 PM
[No subject] - by stenyak - 02-19-2007, 02:08 PM
[No subject] - by thelusiv - 02-20-2007, 05:10 AM
[No subject] - by stenyak - 02-20-2007, 06:51 AM
[No subject] - by reece146 - 02-23-2007, 01:09 PM
[No subject] - by joevenzon_phpbb2_import3 - 02-23-2007, 09:10 PM
[No subject] - by stenyak - 02-24-2007, 10:55 AM
[No subject] - by thelusiv - 02-28-2007, 02:25 AM
[No subject] - by stenyak - 02-28-2007, 05:38 AM
[No subject] - by thelusiv - 02-28-2007, 08:58 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)