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

<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:** [June 9, 2020, 8:21pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/265 "2020-06-09T20:21:17Z")

</div>

CHANGELOG v1.3  
Server authorative replication(no client prediction yet)  
Motocycle sample with BikeHelper assist(ArcadeAssists)  
New DragRace map for the sample project  
Substep tick event available for blueprints  
Ability to drive on moving rigidbodies  
Improvements and bug fixes

Additional Notes:  
-“Allow Wheel Rotation Against Engine” option had a problem that prevented vehicles from stopping on flat surfaces, this is fixed now.  
-Torque splitter assist could be problematic with low frame rates, this is fixed now.  
-Sphere casting could fail to generate a contact in some cases, this is fixed now.  
-There was a bug that effected 4wd vehicles that have different radius for each axle(like a tractor), this is fixed now.  
-Instant suspension contacts could generate huge forces, resulting forces are clamped now.  
-Antirollbars in arcade assists were buggy, they are adapted to the current suspension implementation.  
-There exists some self steering issues, one of them is caused by the “(Mx)Overturn Moment Scale” parameter and it happens at high speeds like 300+ kmh. Another issue can occur because of the “Combined Lateral” options of a tire model. Setting some parameters(RVY1-6) to zero can solve the issue.  
-We used to enable/disable standard input component when the vehicle is possesed/unpossesed. This is removed now so the user has to do that manually. The sandbox maps level blueprint is adapted to this change.  
-In some rare cases the standard input component could cause a random crash. We suspected of a garbage collection issue and updated the UInputComponent as an UPROPERTY. The problems seems to be resolved now.  
-Skidmark normals were based on vehicle up direction, replaced with surface normal now.  
-You can inject inputs to the StandardInput component now, for ex. in MobileInput.map inputs are not directly applied to the vehicle but injected to the StandardInput now. This way you can benefit from its filters and steering assist.  
-DragRace map showcases the use of “SetStartGridMode” function in StandardInput component.  
-Each assist in ArcadeAssists component has enable/disable option now, they are all off by default.  
-4.22 support is droppped, epic do not allow more then 3 versions to be uploaded.

Replication Notes:  
-Replication component implements input and state synchronization, client prediction is not working correctly yet(you will feel the lag) so it is delayed for the next release.  
-Bandwidth optimization was also not the focus of this release, the result of client prediction will show us if we can compress inputs and/or state data.  
-Projective velocity blending is preferred over interpolation for state synchronization, it shows the vehicles closer to their real locations but it can suffer from spikes in frame or ping rates.  
-Replication does not work properly with 32 bit windows builds, the reason is unknown but somehow rotations(FQuat) are not replicated.  
-When testing replication(listen server) with separate windows(different processes with multiple displays) the window that loses focus becomes erratic in framerate so it seems like it does not work smooth but this does not happen with 4.22 or with a dedicated server.  
-Stable framerate is important so the best is to have a fixed framerate or at least limited to some value like 60fps.  
-When using a dedicated server make sure you limit the tick rates or you will experience huge delays, you can add the following lines to the DefaultEngine.ini file:

[/Script/OnlineSubsystemUtils.IpNetDriver]  
MaxNetTickRate=60  
NetServerMaxTickRate=60  
LanServerMaxTickRate=60  
NetClientTicksPerSecond=60  
bClampListenServerTickRates=true

---

<div class="post-metadata">

**Author:** ![Spyridon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spyridon](https://forums.unrealengine.com/u/Spyridon)\
**Post date:** [June 10, 2020, 12:50am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/266 "2020-06-10T00:50:40Z")

</div>

Is there anything special we should do on upgrade, or just upgrade the plugin and we should be good?

---

<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:** [June 10, 2020, 1:15am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/267 "2020-06-10T01:15:23Z")

</div>

> [@Spyridon](#):
>
> Is there anything special we should do on upgrade, or just upgrade the plugin and we should be good?

should be fine(only tested for a simple scenario) but make a backup in any case.  
the only thing you may need to check is the arcade assists, each assist has on/off option now and they are off by default.

---

<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:** [June 10, 2020, 9:44am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/268 "2020-06-10T09:44:24Z")

</div>

> [@AL678mb](#):
>
> Do you mean that when a car jumps from a very high springboard and lands the car no longer bounces like a toy car?

no there is no change in suspension model, this clamps the force when an instant contact generates more then %100 compression, fixes a specific case.  
currently enabling “hard contact option” can cause bounces or the rigidbody can hit the ground hard and bounce.

---

<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:** [June 13, 2020, 6:46pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/269 "2020-06-13T18:46:55Z")

</div>

found a critical bug in 1.3 which breaks the suspensions at low frame rates, we will release a minor update to fix this.

also we have updated the “suspension hard contact” implementation to prevent bouncing that happens when the vehicles falls from height.

the update will probably be released next week, thanks 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:** [June 13, 2020, 10:02pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/270 "2020-06-13T22:02:01Z")

</div>

> [@ALM678mb](#):
>
> Hi! I noticed that. If StickyTireMaxSpeed is set to value = 5 and SuspensionHardContact is activated, the car continues to generate huge suspension forces. (

i could not recreate the issue but sticky tires is an experimental feature and it can behave problematic in certain cases.

also hard contact will be updated in the minor release, it will apply an impulse instead of forces which behaves much better but it has its own drawback that the vehicle can slow down unrealistically when landing.

---

<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:** [June 15, 2020, 9:29am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/271 "2020-06-15T09:29:03Z")

</div>

> [@lazybitgames](#):
>
> found a critical bug in 1.3 which breaks the suspensions at low frame rates, we will release a minor update to fix this.
> 
> also we have updated the “suspension hard contact” implementation to prevent bouncing that happens when the vehicles falls from height.
> 
> the update will probably be released next week, thanks for your understanding.

Thank you for your continuous support.

I am currently nearing the end of my vehicle selection methods and will be digging deeper into the vehicles in general but… so far all tests continue to perform well.

 ![unknown-6.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/e/5e3b7140de01ab3ec9afdfde4bcb426da7933158.jpeg)

---

<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:** [June 18, 2020, 4:20pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/272 "2020-06-18T16:20:45Z")

</div>

v1.3.1 is available now, update is recommended.

CHANGELOG v1.3.1  
Better hard contact implementation  
Ability to look back with OrbitCamera  
Fixed the low fps suspension bug

Additional Notes:  
-Previous hard contact implementation generated larger forces when the suspension is fully compressed which could cause bouncy behaviour. Now the vehicle is translated to a non-penetrating position and the vertical velocity is eliminated.  
-Press the middle mouse button to look back in the sandbox map.  
-Using the auto drive component with an empty brake curve could crash the engine, it is fixed now.  
-The suspensions started to break when the frame rate falls below a certain value, it is fixed now.  
-“Detect Ground Velocity” option is added to the serializer.

---

<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:** [June 21, 2020, 5:46pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/273 "2020-06-21T17:46:59Z")

</div>

> [@ALM678mb](#):
>
> Hello! I can’t understand anything, when there is a button fully pressed (Clutch) in my case it is (LeftShift). Debug shows me that mClutchState = 17 or 32 % . mClutchState is not equal to zero when the clutch is fully pressed?

clutch is auto managed when “auto change” option is enabled in transmission component so make sure it is disabled.  
also set “shifter type” to manual in standard input component if you want to manually set gears.

---

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

</div>

hi, [a new demo is available(615 mb).](https://drive.google.com/file/d/1-ocQhINx0x0aWYOX3LRWiBrdorNmwI41/view?usp=sharing)

you can race with AI or create/join a listen server.

a dedicated build is also included inside Binaries/Win64.

we will update this demo when client prediction is implemented and we may open a dedicated test server in the future.

 ![ss2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/3/33e32f7fe0318a009eb5dd3ede4ff19d29502c7f.jpeg)

---

<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:** [July 4, 2020, 8:39pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/276 "2020-07-04T20:39:46Z")

</div>

Looking good and great to see an updated demo, will check it out tonight.

Thanks

---

<div class="post-metadata">

**Author:** ![xetura](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xetura](https://forums.unrealengine.com/u/xetura)\
**Post date:** [July 6, 2020, 2:05am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/277 "2020-07-06T02:05:26Z")

</div>

I just got around to updating to the latest version and it looks like the ‘Set Throttle’ node is missing now. Set Steering and Set Braking are still there. Wasn’t sure if this was intentional or not, but I’m not running the standard input and need the node. I’m running 4.24. Thanks.

![fgear_424_missing_01.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/c/bcbaa0787b6f5acd8467d7e1a1b0c271c540cd88.jpeg)

 ![fgear_424_missing_02.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/2/e2c0aa195134149a143a8e50422b3e3a1a4cdbb1.jpeg)

---

<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:** [July 6, 2020, 8:13am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/278 "2020-07-06T08:13:32Z")

</div>

hi if you want to use standard input you can use:

![ss1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/1/318d9621f693021dab064b0064cd3f236f393103.jpeg)

if not, you can use the following for throttle:

![ss2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/b/5b6e0d1b197ba222b2ebbfa4b80899193fa38253.jpeg)

---

<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:** [July 14, 2020, 8:55am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/280 "2020-07-14T08:55:06Z")

</div>

> [@Freznosis](#):
>
> Does it work with 90 degree rotated blender models? The car will drive sideways with models exported from Blender in .FBX.

you can define up and forward vectors while exporting from blender.

---

<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:** [July 16, 2020, 8:14pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/282 "2020-07-16T20:14:07Z")

</div>

> [@ALM678mb](#):
>
> Hi! I don’t quite understand of G-Force Meter and how it can be implemented in FGear via UI?

g-force calculation is basically calculation of acceleration, so you need to do some basic physics math:

1-get the velocity vector from rigidbody  
2-tranform into local space to get local velocity  
3-find the difference between last frames local velocity (dv)  
4-find the acceleration (a = dv / dt)

additional steps to get g-units.

5-convert units to m/s^2 since 1 unreal unit is 1cm, so scale the a with 1/100  
6-divide a by g (gval = a / 9.8)

when you get the gval vector you can visualize it via some UI element.

---

<div class="post-metadata">

**Author:** ![Freznosis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Freznosis](https://forums.unrealengine.com/u/Freznosis)\
**Post date:** [July 17, 2020, 7:39am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/283 "2020-07-17T07:39:43Z")

</div>

What’s the best way to stop the wheel slipping instantly when taking off? I assume I have to change some of the values in the MF6 tire model blueprint. The slip seems a bit too ridiculous, even for MF or Pacejka curves. Even if I make a car leave with 10% throttle, the slip ratio is still sitting around 0.5 - 0.8 on telemetry. That seems way to excessive to be slipping at such a low speed with low throttle. I’d understand 100% throttle, but 10-15% throttle and it slips like I am flooring it. It will slip before the car even starts moving. What do you think would cause this? [Here’s a video because I’m not good at explaining this stuff](https://drive.google.com/file/d/1hYDJPUDEgh9rXVqpWFOUJf4-QIvRl1-9/view?usp=sharing)🙂

---

<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:** [July 17, 2020, 11:02am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/284 "2020-07-17T11:02:55Z")

</div>

> [@Freznosis](#):
>
> What’s the best way to stop the wheel slipping instantly when taking off? I assume I have to change some of the values in the MF6 tire model blueprint. The slip seems a bit too ridiculous, even for MF or Pacejka curves. Even if I make a car leave with 10% throttle, the slip ratio is still sitting around 0.5 - 0.8 on telemetry. That seems way to excessive to be slipping at such a low speed with low throttle. I’d understand 100% throttle, but 10-15% throttle and it slips like I am flooring it. It will slip before the car even starts moving. What do you think would cause this? [Here’s a video because I’m not good at explaining this stuff](https://drive.google.com/file/d/1hYDJPUDEgh9rXVqpWFOUJf4-QIvRl1-9/view?usp=sharing)🙂

there are some parameters that can effect this and tuning tire models is the most difficult one.  
pacejka curves behave poorly at speeds close to zero so some initial large slips need to happen regardless.  
the easiest way to is to to use the ASR assist. you can also tweak the wheel mass value but this value needs to stay in a consistent range or rpm matching between engine and wheels can fail in certain cases. additionally lowering engine inertia, increasing tire friction values and lowering throttle sensivity can help.

regards.

---

<div class="post-metadata">

**Author:** ![CloudWEI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CloudWEI](https://forums.unrealengine.com/u/CloudWEI)\
**Post date:** [July 18, 2020, 8:47am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/285 "2020-07-18T08:47:08Z")

</div>

> [@lazybitgames](#):
>
> hi, [a new demo is available(615 mb).](https://drive.google.com/file/d/1-ocQhINx0x0aWYOX3LRWiBrdorNmwI41/view?usp=sharing)
> 
> you can race with AI or create/join a listen server.
> 
> a dedicated build is also included inside Binaries/Win64.
> 
> we will update this demo when client prediction is implemented and we may open a dedicated test server in the future.
> 
> ![ss2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/3/33e32f7fe0318a009eb5dd3ede4ff19d29502c7f.jpeg)

Hi, may I have this example project? It is useful enough for my work. Thanks anyway.

---

<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:** [July 18, 2020, 11:00am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/286 "2020-07-18T11:00:00Z")

</div>

> [@CloudWEI](#):
>
> Hi, may I have this example project? It is useful enough for my work. Thanks anyway.

we can not share this project because some of the assets are not free.  
this demo contains some extra UI elements like minimap and rankings other then that most of things are similar to the sample project.  
those extra UI elements will be included in the next version but i can provide them beforehand if you need, just drop me a mail.

regards.

---

<div class="post-metadata">

**Author:** ![CloudWEI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CloudWEI](https://forums.unrealengine.com/u/CloudWEI)\
**Post date:** [July 19, 2020, 3:03pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/287 "2020-07-19T15:03:40Z")

</div>

> [@lazybitgames](#):
>
> we can not share this project because some of the assets are not free.  
> this demo contains some extra UI elements like minimap and rankings other then that most of things are similar to the sample project.  
> those extra UI elements will be included in the next version but i can provide them beforehand if you need, just drop me a mail.
> 
> regards.

Thanks for replying.  
Actually, I just wonder why the replication movement work so excellent in your demo, but so poor in mine…The vehicle had some abnormal twitch in client.  
I have also tested replication in “Multiplayer” level, which is in sandbox project, but got the same result.(ping is 35)  
May I get some advice? Any help would be appreciated.

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

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