Game Development Community

Vehicle to Vehicle Collisions

by Brian McGavin · in Torque Game Engine · 10/18/2005 (7:38 am) · 1 replies

I want to tweak/improve the vehicle to vehicle collisions for my game. When a vehicle hits a building the behavior looks correct. However if a fast moving vehicle hits a slower moving vehicle. The slow moving vehicle doesn't speed up at all and the fast vehicle will flip over when it shouldn't.

I traced through the code and looks like in the rigid class,the function resolvecollision() does the work. This function is called whether the vehicle hits a brick wall or a car. I though about making a special case for vehicle to vehicle collisions. Has anybody else tried this or improved this problem?

Brian

#1
10/18/2005 (9:55 am)
www.garagegames.com/blogs/6452/7660 Clark is doing some cool stuff with vehicle collisions and collisions in general. He plans on submitting the code when he feels its "done" and he has his other priorites completed. Also Akio www.garagegames.com/blogs/27965/8867 has done some cool stuff too.