Problem with physical objects and collisions

I have been trying to solve this problem with physics for some time.
I have the following objects on the map: Character, Vehicle and Horse.
When the character approaches/touch the car, it blocks it and the car does not move. And it’s fine. But when I shoot a car with bullets, the car moves and even bounces. Also, when a horse hits a car, it can kick it as a football ball.
Horse is character and blocks everything in collision settings. Vehicle is PhysXVehicl and also block everything.
I tried various variants with collisions and nothing gives good results. I even created new collision boxes to block bullets but it’s not a good solution because it’s inconvenient.

Problem is that bullets can move vehicle and horse can play football with vehicle :slight_smile:

Are there any special settings for collisions of physical objects that will just block specific object, but not move the car? Collision boxed can work, but when I approach the car then the bullets hit the car even though it is a crosshair outside the vehicle (because of collision box).

Vehicle mass have no big effect on this.

If you’re using one of the base template of Unreal, make sure your projectile doesn’t have a bunch of codes that “adds impulse” to the hit object.

You can check out three different settings to turn off such behavior:

  • “simulate physics” turn it off on your skeletal / static meshes used by your Car and Horse
  • “enable gravity” turn it off on the same components
  • if one of your actors (Player / Horse / Car) has a character movement, you can try to deactivate the “enable physic interaction” on it)
1 Like

Thank you for reply.
I found in the code Add impulse on location for projectile and remove it. Now it’s working and object is not moving on the hit.
If I disable “simulate physics” on vehicle than vehicle does not move when possessed.
Horse already have disabled simulate physics and still can hit the car.
So basically, I want when vehicle hit the character it won’t stop/block (and I will simulate ragdoll on character if needed). For some reason it’s not working.
For instance, condition for trigger ragdoll is: vehicle speed>=20, but than character only rotates for 90 degrees on hit. Something is really weird with UE4 physics.