# 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:** 8

<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:** [February 16, 2020, 5:23am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/145 "2020-02-16T05:23:44Z")

</div>

> [@Konflict](#):
>
> In which cases? Could you be a bit more specific? 🙂

sometimes clients wheels start to sink or wheels rotate for no reason, this does not happen in 4.22.

> [@Konflict](#):
>
> I have this method disabled but the body seems to be replicated fine, since epics replication takes care of it already.

it seems fine but i had problems with 4.23, it was not apparent at first but after playing a couple minutes the rotation of the vehicle diverges from the server and it is not corrected so the vehicle can start going sideways until a correction happens which do not happen for a long time or until you crash.

> [@PerfsPC](#):
>
> Hi, We are creating a multiplayer racer and I’ve been following this for a while now as we have tried all sorts for the last few years to have “smooth non jittery” clients.

v1.2 will be released in a short time and after that our only focus will be on multiplayer.

---

<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:** [February 16, 2020, 1:54pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/146 "2020-02-16T13:54:52Z")

</div>

hi,

v1.2 files are uploaded and pending for approval.  
updated documentations and sample project is also uploaded.  
using the new sample project with older versions may cause problems so please wait for the plugin update.  
i will post a change log when the new version is published.

thank you.

ps. i am relocating to another city and i will have limited access to my computer for a couple of weeks so i may not be able to respond quickly as usual, thank you for your understanding.

---

<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:** [February 17, 2020, 9:23pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/147 "2020-02-17T21:23:45Z")

</div>

v1.2 is available now

CHANGELOG

- Substepping support
- Save/Load option(editor only)
- Sticky tire option for preventing low speed slips (experimental)
- Custom editor UI elements (for ex. you can see top speeds for each gear in editor)
- Basic AI Driver component
- New AITest map for sample project
- Separate axis mode option for StandardInput
- Option to prevent tire-ground penetration
- Sphere casting option
- An additional rc car setup for the sandbox map
- Minor improvements and bug fixes

Additional Notes:  
-Substepping is the recommended approach now.  
-Due to a problem with the unreal editor, it can be problematic to save/load  
from the blueprint editor window. When blueprint window is open and the viewport tab is not selected,  
extra axle components(axles other then front/rear) can not be retrieved so it is safer to save/load from  
regular details panel or make sure the viewport panel is active in blueprint window.  
-If you use separate axis for throttle/brake then you can throttle & brake at the same time.  
-You can call ArcadeAssists::setCruiseSpeed method to set the vehicles instant speed. This could be usefull for rolling starts.  
-Rc cars animation blueprint is copied from unreals own vehicle sample.  
-An additional parameter called RimOffset is added, this will offset the physical wheels laterally in case the visuals do not match(Rc car is an example).  
-If you prevent tire-ground penetration, tires can penetrate the fenders.  
-You can change every value of WheelOptions for each wheel now.  
Changing these values for left and right wheel can be problematic in some cases where  
there is an assumption that left/right wheels have the same value.  
For ex. if left and right wheels have different radius and the difference is more then acceptable ranges  
then the transmission will change gears earlier then expected because gear changes are based on the slowest wheel.

---

<div class="post-metadata">

**Author:** ![YOHAMI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YOHAMI](https://forums.unrealengine.com/u/YOHAMI)\
**Post date:** [February 21, 2020, 8:46am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/148 "2020-02-21T08:46:09Z")

</div>

@lazybitgames sent you a PM

---

<div class="post-metadata">

**Author:** ![PerfsPC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/perfspc/32/1194509_2.png) [@PerfsPC](https://forums.unrealengine.com/u/PerfsPC)\
**Post date:** [February 22, 2020, 11:46am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/149 "2020-02-22T11:46:40Z")

</div>

For anybody looking at purchasing this I can give it 9.5/10 so far.

Everything seems really nice and simple enough to work with, I’m looking forward to the future updates to see what comes with the multiplayer updates for replication but short term we have our own Multiplayer Replication platform and seems to sit in nicely and reasonably smooth.

The standalone mp replication is a must for clientside prediction (if that is the best way to go?) as for years we have struggled with smooth online play but we are now moving forward at last.

Thanks @lazybitgames I’m sure we will be in touch on any issues…

Kind Regards

---

<div class="post-metadata">

**Author:** ![Supline](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Supline](https://forums.unrealengine.com/u/Supline)\
**Post date:** [February 26, 2020, 5:03pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/150 "2020-02-26T17:03:32Z")

</div>

Hey @lazybitgames , i need some help for 6 tire vehicle, If i use 4 tire on the blueprint, gear change will be okay, but if i use 6 tire on the blueprint, it will be stuck on the gear 1. I don’t know how to fix it.  
(if you need to know, I copied from the truck animation AnimBP for 6 tire)

[![]( " - YouTube") ](https://www.youtube.com/watch?v=Hann5DfIob4)

Thanks

---

<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:** [February 26, 2020, 5:26pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/151 "2020-02-26T17:26:30Z")

</div>

> [@Supline](#):
>
> Hey @lazybitgames , i need some help for 6 tire vehicle, If i use 4 tire on the blueprint, gear change will be okay, but if i use 6 tire on the blueprint, it will be stuck on the gear 1. I don’t know how to fix it.  
> (if you need to know, I copied from the truck animation AnimBP for 6 tire)
> 
> [https://youtube.com/watch?v=Hann5DfIob4](https://youtube.com/watch?v=Hann5DfIob4)
> 
> Thanks

you duplicate the axles and the sum of the torque share values become 2(1+1).  
this will confuse some calculations so keep the sum at 1, for ex. 0.5 per axle.

---

<div class="post-metadata">

**Author:** ![Supline](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Supline](https://forums.unrealengine.com/u/Supline)\
**Post date:** [February 27, 2020, 7:51am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/152 "2020-02-27T07:51:33Z")

</div>

Hey @lazybitgames ! Another question, i can’t use Break Constraint node, is there any way to use it to smash the car? Thank you!

 ![break.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/f/3f2e6b4f71648253203a35cbef89e9972fa2de64.jpeg)

 ![break2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/2/124f7ffd81c74eeba195d304cdfd9ce7a1b4741f.jpeg)

---

<div class="post-metadata">

**Author:** ![Last\_Coin\_Games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Last\_Coin\_Games](https://forums.unrealengine.com/u/Last_Coin_Games)\
**Post date:** [February 27, 2020, 5:54pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/153 "2020-02-27T17:54:45Z")

</div>

Hi @Supline **,**  
You cannot call mMesh object in blueprint directly. Because it is not blueprint visible. You can call mesh reference with getMesh() function.

 ![bc.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/b/fb4960cf79b53be55051d870b59f683113addea0.jpeg)

---

<div class="post-metadata">

**Author:** ![Supline](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Supline](https://forums.unrealengine.com/u/Supline)\
**Post date:** [March 4, 2020, 9:41am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/154 "2020-03-04T09:41:08Z")

</div>

Hey @lazybitgames i have 2 question/problem (I am constantly having problems because I am trying to drive a strange vehicle)

1. The car pulls left after 300-320km. On the video i didnt touch any turn key on the first part of the video, I just press the forward button, but it’s try to turn left. (I don’t know why and how to fix)  
2)I Almost try anything to make this car similar to Need For Speed game, like 400km speed Possibility to turn the vehicle left and right when traveling at 400 km speed etc. but now it feels like the car is flying.The car is very difficult to control.  
3)End of the video i share with you all the settings what i did, I try to make a copy from your Arcade Car BluePrint but it’s not work well for me, hope we can find a solution.

[![]( " - YouTube") ](https://www.youtube.com/watch?v=HQoQwsYrr9Y)

Thank you very much for your support!

---

<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:** [March 4, 2020, 10:36am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/155 "2020-03-04T10:36:15Z")

</div>

> [@Supline](#):
>
> 1. The car pulls left after 300-320km. On the video i didnt touch any turn key on the first part of the video, I just press the forward button, but it’s try to turn left. (I don’t know why and how to fix)

if you mean the first 30 seconds, you clearly steer, it is visible in the telemetry, if you mean the first 10 seconds, it could be a precision issue or a setup problem, i will check it.

> [@Supline](#):
>
> 2)I Almost try anything to make this car similar to Need For Speed game, like 400km speed Possibility to turn the vehicle left and right when traveling at 400 km speed etc. but now it feels like the car is flying.The car is very difficult to control.

it sounds more like trackmania cars not nfs cars, nfs cars are not that unrealistic. if you stick to realism it is difficult to go at 400+ kmh and make easy turns. in such case you should do your best to make the car as stable as possible at high speeds and apply extra forces then like ArcadeAssists. make sure your steering limit/speed curves are properly configured, keep your center of gravity low, keep your suspensions tight, you need more simulation quality at high speeds also(lower physics dt), you need more slick tires(better grip) etc. at such high speeds, even after a good setup you will possibly need to apply external forces like ArcadeAssists. maybe you can try increasing lateral force scale as the vehicle goes faster.

> [@Supline](#):
>
> 3)End of the video i share with you all the settings what i did, I try to make a copy from your Arcade Car BluePrint but it’s not work well for me, hope we can find a solution.

you can dump the settings to a json file(save/load option) in the vehicle settings so i can just load and test them.

---

<div class="post-metadata">

**Author:** ![Supline](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Supline](https://forums.unrealengine.com/u/Supline)\
**Post date:** [March 4, 2020, 10:55am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/156 "2020-03-04T10:55:02Z")

</div>

> [@lazybitgames](#):
>
> if you mean the first 30 seconds, you clearly steer, it is visible in the telemetry, if you mean the first 10 seconds, it could be a precision issue or a setup problem, i will check it.
> 
> it sounds more like trackmania cars not nfs cars, nfs cars are not that unrealistic. if you stick to realism it is difficult to go at 400+ kmh and make easy turns. in such case you should do your best to make the car as stable as possible at high speeds and apply extra forces then like ArcadeAssists. make sure your steering limit/speed curves are properly configured, keep your center of gravity low, keep your suspensions tight, you need more simulation quality at high speeds also(lower physics dt), you need more slick tires(better grip) etc. at such high speeds, even after a good setup you will possibly need to apply external forces like ArcadeAssists. maybe you can try increasing lateral force scale as the vehicle goes faster.
> 
> you can dump the settings to a json file(save/load option) in the vehicle settings so i can just load and test them.

This is the car settings json file, meanwhile i’ll test your answer, thank you!

---

<div class="post-metadata">

**Author:** ![Supline](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Supline](https://forums.unrealengine.com/u/Supline)\
**Post date:** [March 5, 2020, 10:11am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/157 "2020-03-05T10:11:34Z")

</div>

I think I broke the plug-in. Everything was going well, the vehicle could reach 400km very easily, then I saved the project and the vehicle broke down.  
I also try the versions I backed up, but it doesn’t work properly. (Curves are almost the same as default.)

[![]( " - YouTube") ](https://www.youtube.com/watch?v=FxWwWieoJE8)

This video same settings (v2) version before the problem

[![]( " - YouTube") ](https://www.youtube.com/watch?v=9YMbvvcKe5E)

---

<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:** [March 5, 2020, 10:31am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/158 "2020-03-05T10:31:48Z")

</div>

> [@Supline](#):
>
> I think I broke the plug-in. Everything was going well, the vehicle could reach 400km very easily, then I saved the project and the vehicle broke down.  
> I also try the versions I backed up, but it doesn’t work properly. (Curves are almost the same as default.)

i remember a similar break down earlier in development, it was happening with a vehicle with 3 axles then i remade the vehicle and it was fine again, never found the cause, it was the same setup but sth. was broken, might be the component structure in some way, not sure.  
do you have a specific reason to use 3 axles in this vehicle, you can get the same(may be better) driving with just 2 axles, just use sphere casting and wheels will also have width.

---

<div class="post-metadata">

**Author:** ![Supline](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Supline](https://forums.unrealengine.com/u/Supline)\
**Post date:** [March 5, 2020, 10:48am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/159 "2020-03-05T10:48:41Z")

</div>

> [@lazybitgames](#):
>
> i remember a similar break down earlier in development, it was happening with a vehicle with 3 axles then i remade the vehicle and it was fine again, never found the cause, it was the same setup but sth. was broken, might be the component structure in some way, not sure.  
> do you have a specific reason to use 3 axles in this vehicle, you can get the same(may be better) driving with just 2 axles, just use sphere casting and wheels will also have width.

the tool needs to be configured by the end user, so they have to touch 3 axles. By The Way! Problem was FIXED!  
Solution is: duplicate the Vehicle Blueprint, like if you got the problem on “SedanArcade\_BP” duplicate it and work on the duplicated version. The problem will be solved.^^

---

<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:** [March 5, 2020, 10:51am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/160 "2020-03-05T10:51:34Z")

</div>

> [@Supline](#):
>
> the tool needs to be configured by the end user, so they have to touch 3 axles. By The Way! Problem was FIXED!  
> Solution is: duplicate the Vehicle Blueprint, like if you got the problem on “SedanArcade\_BP” duplicate it and work on the duplicated version. The problem will be solved.^^

good to hear, it is a nice workaround 🙂

---

<div class="post-metadata">

**Author:** ![Supline](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Supline](https://forums.unrealengine.com/u/Supline)\
**Post date:** [March 5, 2020, 2:30pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/161 "2020-03-05T14:30:59Z")

</div>

Hey! @lazybitgames Question; how can i get Telemetry data, i want to change UI But I couldnt find it.  
Thank you :3

---

<div class="post-metadata">

**Author:** ![Last\_Coin\_Games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Last\_Coin\_Games](https://forums.unrealengine.com/u/Last_Coin_Games)\
**Post date:** [March 5, 2020, 3:18pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/162 "2020-03-05T15:18:17Z")

</div>

Hi @Supline  
Please check AFGearVehicle::PostRenderFor method (c++). We did not use the hud class to make the library completely independent of the game code.  
Also certain components(FGearAeroDynamics, FGearAxle, FGearEngine, FGearStandardInput, FGearTransmission, FGearWheel) have a drawTelemetry method.

---

<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:** [March 6, 2020, 10:15am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/163 "2020-03-06T10:15:55Z")

</div>

> [@Supline](#):
>
> The car pulls left after 300-320km. On the video i didnt touch any turn key on the first part of the video, I just press the forward button, but it’s try to turn left. (I don’t know why and how to fix)

could you try lowering wheel mass and/or using open/locked diff. and see if it has any effect at all.

in some cases when engine is powerful and wheel mass is a bit high so that wheels can not catch up with the engine, one of the wheels can lag a little bit and differential kicks in so the vehicle tends to steer to one side.

---

<div class="post-metadata">

**Author:** ![BlueMountainsIO](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bluemountainsio/32/1193954_2.png) [@BlueMountainsIO](https://forums.unrealengine.com/u/BlueMountainsIO)\
**Post date:** [March 10, 2020, 4:35pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/164 "2020-03-10T16:35:34Z")

</div>

Think I found a bug.

1. Run the example project in the editor (PIE) and select a vehicle to drive (preferably #2).
2. Switch out of the window but don’t stop the instance.
3. After 2-3 minutes switch back to the PIE and try to accelerate.

Vehicle won’t accelerate nor reverse. It probably has something to do with the framerate being so low for some time (3 FPS) when the PIE doesn’t have focus.  
I can also see that the limiter in the engine telemetry switches between “false” and “true” quickly.

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

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