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
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).
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.