Author Topic: Detecting Vehicle Collision with a brick  (Read 506 times)

When trying to check for a collision with a brick using the vehicle's "OnCollision" method, I noticed that bricks did not cause the execution of that function. Is there any other way you know of detecting when a vehicle collides with a brick? (Vehicle does not have tires to stop it from hitting the brick)

You could try fxDtsBrick::onCollision and check if the object is a vehicle. Look at the Rampaging Vehicles mod.

I thought I dumped fxDTSBrick and didn't see any OnCollision but I'll check again. Never heard of that mod, haven't played/modded in a year and a half.

Edit: Checked out the mod, it packages WheeledVehicleData::OnImpact and then uses a raycast box search to check for bricks. I guess that will work.

Thanks for pointing me in the right direction.
« Last Edit: August 11, 2011, 01:23:29 PM by AGlass0fMilk »