# FGear Vehicle Physics (v1.4)

**URL:** <https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793>\
**Category:** UE Marketplace\
**Tags:** unreal-engine, fab\
**Created:** [July 16, 2019, 4:10pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793 "2019-07-16T16:10:39Z")\
**Posts on this page:** 20\
**Page:** 27

<div class="post-metadata">

**Author:** ![lazybitgames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lazybitgames](https://forums.unrealengine.com/u/lazybitgames)\
**Post date:** [November 20, 2021, 2:39pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/530 "2021-11-20T14:39:41Z")

</div>

normally you should have a separate mesh for collision here(this is how i would solve this), it doesn’t make sense to drive on such surfaces.

to have more stable drive on bumpy surfaces try Suspension Relaxation Downforce option and use a high relaxation damper value.

in code you may be able detect sharp changes in suspension compression and avoid wild responses, this may(not) work.

---

<div class="post-metadata">

**Author:** ![rotacak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rotacak/32/442224_2.png) [@rotacak](https://forums.unrealengine.com/u/rotacak)\
**Post date:** [November 20, 2021, 3:01pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/531 "2021-11-20T15:01:05Z")

</div>

But I think this is not caused by the suspension, but with the ground collision with a car collision, not with the tire. Collisions with the tires seems ok.

---

<div class="post-metadata">

**Author:** ![lazybitgames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lazybitgames](https://forums.unrealengine.com/u/lazybitgames)\
**Post date:** [November 20, 2021, 3:23pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/532 "2021-11-20T15:23:21Z")

</div>

if it’s about ground collision then try using complex(per triangle) collision.

people have reported weird collision issues before like invisible hard edges that collide with the vehicle body. could be a problem with unreal itself not sure, switching to complex collision may help.

---

<div class="post-metadata">

**Author:** ![rotacak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rotacak/32/442224_2.png) [@rotacak](https://forums.unrealengine.com/u/rotacak)\
**Post date:** [November 20, 2021, 3:42pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/533 "2021-11-20T15:42:08Z")

</div>

Do you mean this? (I already have it like that):  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/3/a3686e6d9072679a480a39a43a40015e7d4646af.png)

I through that this is only settings that can make mesh with per poly collisions.

---

<div class="post-metadata">

**Author:** ![lazybitgames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lazybitgames](https://forums.unrealengine.com/u/lazybitgames)\
**Post date:** [November 20, 2021, 3:56pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/534 "2021-11-20T15:56:06Z")

</div>

can you send me that model in the video for testing via mail.

---

<div class="post-metadata">

**Author:** ![rotacak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rotacak/32/442224_2.png) [@rotacak](https://forums.unrealengine.com/u/rotacak)\
**Post date:** [November 20, 2021, 4:09pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/535 "2021-11-20T16:09:51Z")

</div>

Ok, sent.

---

<div class="post-metadata">

**Author:** ![lazybitgames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lazybitgames](https://forums.unrealengine.com/u/lazybitgames)\
**Post date:** [November 20, 2021, 5:16pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/536 "2021-11-20T17:16:07Z")

</div>

well, the vehicle body hits the ground and results an unwanted push like that, it seems normal to me. using a better collider may be helpful:

 ![Untitled2](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/7/871bf20ca116880e29be5d3cb8220190c1a8d74b.jpeg)

---

<div class="post-metadata">

**Author:** ![rotacak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rotacak/32/442224_2.png) [@rotacak](https://forums.unrealengine.com/u/rotacak)\
**Post date:** [November 20, 2021, 5:39pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/537 "2021-11-20T17:39:29Z")

</div>

I will try, I using custom collision an that is only slightly like on your picture (I wanted to have it exactly like car model shape). I will try to cut it more, but doubt.

But I cannot agree that it is normal behavior. When I drive straight at 40 km/h and it will make crazy jump and I will end on the roof - that is not real, not even arcade. Maybe would be solution to be able to decrease some Z forces when coliding from bottom to up.

---

<div class="post-metadata">

**Author:** ![rotacak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rotacak/32/442224_2.png) [@rotacak](https://forums.unrealengine.com/u/rotacak)\
**Post date:** [November 20, 2021, 7:36pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/538 "2021-11-20T19:36:44Z")

</div>

So, better car collision does not helped ☹

---

<div class="post-metadata">

**Author:** ![lazybitgames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lazybitgames](https://forums.unrealengine.com/u/lazybitgames)\
**Post date:** [November 20, 2021, 8:26pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/539 "2021-11-20T20:26:05Z")

</div>

sharp edges are bad for physics engines, i don’t want to repeat myself but there shouldn’t be that kind of spikes on a terrain in the first place.

you can increase vehicle body inertia or per body velocity calculation iterations to get better reactions but it will not be a solution.

may be you can try some settings from the engine, for ex. if i set “Bounce Threshold Velocity” (in Project Settings-\>Physics) to 2000 then the collision response feels much better.

---

<div class="post-metadata">

**Author:** ![ReduxRus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ReduxRus](https://forums.unrealengine.com/u/ReduxRus)\
**Post date:** [November 21, 2021, 9:10pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/540 "2021-11-21T21:10:20Z")

</div>

Hey! Very cool physics!  
I ask for help, show me how you can make the movement of only the right/left side wheels? (for tracked vehicles) Is it possible? I understand that I need to rewrite the code, I just ask you to show me where to start.

---

<div class="post-metadata">

**Author:** ![lazybitgames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lazybitgames](https://forums.unrealengine.com/u/lazybitgames)\
**Post date:** [November 21, 2021, 11:24pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/541 "2021-11-21T23:24:37Z")

</div>

anything is possible when you have the code, you can start from UFGearAxle::steeringUpdate.  
instead of setting steering values for the wheels, maybe you can set another parameter to tell the wheels to revert or not.

---

<div class="post-metadata">

**Author:** ![ReduxRus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ReduxRus](https://forums.unrealengine.com/u/ReduxRus)\
**Post date:** [November 22, 2021, 12:37am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/542 "2021-11-22T00:37:43Z")

</div>

Thanks! We’ve done everything, your code is pretty beautiful!

---

<div class="post-metadata">

**Author:** ![ReduxRus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ReduxRus](https://forums.unrealengine.com/u/ReduxRus)\
**Post date:** [November 23, 2021, 11:38am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/543 "2021-11-23T11:38:28Z")

</div>

I have a serious problem. I added 5 axles for the tank. And every time I start the editor, the order of these axes changes. That is, at first, for example, the 5th axis was the 5th in order, when it is restarted it becomes the 3rd, etc.

---

<div class="post-metadata">

**Author:** ![ReduxRus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ReduxRus](https://forums.unrealengine.com/u/ReduxRus)\
**Post date:** [November 23, 2021, 1:56pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/544 "2021-11-23T13:56:12Z")

</div>

More details: the indices are changed in the Axles array in the anim blueprint. It would be great if you could manually set the index on the axis. Can you do it? Or at least tell me where to start?

---

<div class="post-metadata">

**Author:** ![lazybitgames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lazybitgames](https://forums.unrealengine.com/u/lazybitgames)\
**Post date:** [November 23, 2021, 3:15pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/545 "2021-11-23T15:15:00Z")

</div>

what’s the actual problem, does it break the animations?

you can determine the real order from the respective bone names so may be you can reorder them after initialization.

---

<div class="post-metadata">

**Author:** ![ReduxRus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ReduxRus](https://forums.unrealengine.com/u/ReduxRus)\
**Post date:** [November 23, 2021, 4:12pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/546 "2021-11-23T16:12:13Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/e/0e81dfd7cbec0ac6056896cdfbc52d8025d14b20.jpeg)  
By the way, how do I fix this? Wheels go under the landscape when descending from a mountain at a speed of more than 50 km / h

---

<div class="post-metadata">

**Author:** ![ReduxRus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ReduxRus](https://forums.unrealengine.com/u/ReduxRus)\
**Post date:** [November 23, 2021, 4:17pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/547 "2021-11-23T16:17:04Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/3/d348b126ececcd3aaf8c1da88b72140f81b90f47.png)  
I found everything, I had to remove this

---

<div class="post-metadata">

**Author:** ![ReduxRus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ReduxRus](https://forums.unrealengine.com/u/ReduxRus)\
**Post date:** [November 23, 2021, 4:20pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/548 "2021-11-23T16:20:03Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/1/4181c098f1030ef5af539cc10bd0fa4f366dbb7d.png)  
I noticed a strange problem, if the speed of the tank is higher (22 km/h), then the wheel turns are inverted (Steering). I wrote a crutch for this, but I would like to know the real reason for this strange behavior.

---

<div class="post-metadata">

**Author:** ![lazybitgames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lazybitgames](https://forums.unrealengine.com/u/lazybitgames)\
**Post date:** [November 23, 2021, 4:28pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/549 "2021-11-23T16:28:31Z")

</div>

tire ground penetration related parameters are mentioned in the documentation. check “Suspension Hard Contact”, “Suspension Tire Penetration” and Suspension Constraint component.

there is no known issue that reverses steering, it doesn’t sound possible, if you modified source code you might have corrupted some calculations.

[Previous page](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793.md?page=26)

[Next page](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793.md?page=28)
