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

<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 10, 2020, 7:09pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/165 "2020-03-10T19:09:29Z")

</div>

> [@BlueMountainsIO](#):
>
> 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.

interesting, thanks for the feedback.

---

<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 10, 2020, 8:29pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/166 "2020-03-10T20:29:42Z")

</div>

@BlueMountainsIO

the bug is in the ArcadeAssists component so it only occours with some of the cars.  
the problem is that the code is converted from unity and in unity lerp function is clamped between 0-1 but it is not in unreal.  
so the fix is to change the line:

```auto

float time = dt / (0.001f * mTorqueSplitterResponseTime);

```

to this:

```auto

float time = FMath::Clamp(dt / (0.001f * mTorqueSplitterResponseTime), 0.0f, 1.0f);

```

---

<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, 9:30pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/167 "2020-03-10T21:30:10Z")

</div>

> [@lazybitgames](#):
>
> @BlueMountainsIO
> 
> the bug is in the ArcadeAssists component so it only occours with some of the cars.  
> the problem is that the code is converted from unity and in unity lerp function is clamped between 0-1 but it is not in unreal.  
> so the fix is to change the line:
> 
> ```auto
> 
> float time = dt / (0.001f * mTorqueSplitterResponseTime);
> 
> ```
> 
> to this:
> 
> ```auto
> 
> float time = FMath::Clamp(dt / (0.001f * mTorqueSplitterResponseTime), 0.0f, 1.0f);
> 
> ```

It’s fixed, thanks a lot!

---

<div class="post-metadata">

**Author:** ![Footman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Footman](https://forums.unrealengine.com/u/Footman)\
**Post date:** [March 14, 2020, 9:11pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/168 "2020-03-14T21:11:28Z")

</div>

Hello, I purchased it and found some issues that I did not see in demo few months ago. There is jittering on sharp vehicle turning. I don’t know if it come from physics or from camera. I tested on both windows and android.

---

<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 14, 2020, 9:23pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/169 "2020-03-14T21:23:43Z")

</div>

> [@Footman](#):
>
> Hello, I purchased it and found some issues that I did not see in demo few months ago. There is jittering on sharp vehicle turning. I don’t know if it come from physics or from camera. I tested on both windows and android.

we have not seen such jitter, can you show us a video?  
you can try using a regular spring camera to make sure it is not related to the camera code.  
and can you try packaging an exe and try it on the windows build.

---

<div class="post-metadata">

**Author:** ![Footman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Footman](https://forums.unrealengine.com/u/Footman)\
**Post date:** [March 15, 2020, 11:44am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/170 "2020-03-15T11:44:21Z")

</div>

> [@lazybitgames](#):
>
> we have not seen such jitter, can you show us a video?  
> you can try using a regular spring camera to make sure it is not related to the camera code.  
> and can you try packaging an exe and try it on the windows build.

Hey, yes i tested with normal springarm camera and its gone. so it should come from fgearorbitcamera. It starts jigger when camera is nearly 90 degree to the car. Also on windows its much less after updating windows 10 sdk with visual studio but not gone completely. On Android its visible most.

---

<div class="post-metadata">

**Author:** ![Footman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Footman](https://forums.unrealengine.com/u/Footman)\
**Post date:** [March 15, 2020, 11:50am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/171 "2020-03-15T11:50:40Z")

</div>

Also is there any multiplayer support? From demo maps i cant see this.

---

<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 15, 2020, 4:29pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/172 "2020-03-15T16:29:23Z")

</div>

> [@Footman](#):
>
> Hey, yes i tested with normal springarm camera and its gone. so it should come from fgearorbitcamera. It starts jigger when camera is nearly 90 degree to the car. Also on windows its much less after updating windows 10 sdk with visual studio but not gone completely. On Android its visible most.

i see, probably substepping is effecting the camera code, we will look into it.

> [@Footman](#):
>
> Also is there any multiplayer support? From demo maps i cant see this.

you can test with the multiplayer map in the sample project but it is known that replication has some issues, we are planning to rework the multiplayer part for the next version.

---

<div class="post-metadata">

**Author:** ![Footman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Footman](https://forums.unrealengine.com/u/Footman)\
**Post date:** [March 15, 2020, 7:01pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/173 "2020-03-15T19:01:03Z")

</div>

> [@lazybitgames](#):
>
> i see, probably substepping is effecting the camera code, we will look into it.
> 
> you can test with the multiplayer map in the sample project but it is known that replication has some issues, we are planning to rework the multiplayer part for the next version.

thank you. yes i saw there are problems with interpolation in multiplayer. do you know probably when next version will be available?

---

<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 15, 2020, 7:35pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/174 "2020-03-15T19:35:01Z")

</div>

> [@Footman](#):
>
> thank you. yes i saw there are problems with interpolation in multiplayer. do you know probably when next version will be available?

there is no strict timeline for that and we want to solve it for good which may take some time. i would say it could take at least 2 months from now.

---

<div class="post-metadata">

**Author:** ![Footman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Footman](https://forums.unrealengine.com/u/Footman)\
**Post date:** [March 17, 2020, 7:18pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/175 "2020-03-17T19:18:13Z")

</div>

> [@lazybitgames](#):
>
> there is no strict timeline for that and we want to solve it for good which may take some time. i would say it could take at least 2 months from now.

is it possible to contact you for custom development for us?

---

<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 17, 2020, 7:24pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/176 "2020-03-17T19:24:23Z")

</div>

> [@Footman](#):
>
> is it possible to contact you for custom development for us?

drop me a pm, we can discuss but no promises.

---

<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 23, 2020, 7:26pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/177 "2020-03-23T19:26:46Z")

</div>

> [@ALM678mb](#):
>
> Hi! When a car jumps off a ski jump and crashes into the ground like a toy car, it seems that the car’s body doesn’t have any weight. “Inertia Scale” or Angular Velocity and etc doesn’t help. Can there still be parameters that can fix this situation?

is the problem about bouncing or fast movement response of the vehicle?

if it is about fast movement, inertia scale will certainly have positive effect on it but it also effects the overall driving so you need to be careful with that. some games might be using artificial effects to ease the high velocity impacts with the ground but that does not help what you need i think.

---

<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 23, 2020, 9:13pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/178 "2020-03-23T21:13:03Z")

</div>

they must be faking it somehow, suspensions work normal in reasonable ranges but falling from 20 meters is another story, may be we can work on something like a landing assist.

---

<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 27, 2020, 10:37am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/179 "2020-03-27T10:37:35Z")

</div>

> [@ALM678mb](#):
>
> Hi! One more question! Is it possible to walk to the RPM red line on the spot (the car is parked with the handbrake pressed)? It is interesting when you turn off “AutoChange” this trick is performed without problems ,but when I turn on this parameter “AutoChange” the car does not want to increase the RPM when it stands still.

when the gear is not neutral it does not make sense for the engine to rev-up(in case the the axle with power is blocked by brakes), you need to either disengage the clutch or switch to neutral gear.

in games before a race starts the vehicles can rev-up while waiting for the green light, in such cases there is a hidden feature(StandardInput::setStartGridMode) but it is buggy in current version. if you want to use that drop me a mail and i can send you a local fix.

---

<div class="post-metadata">

**Author:** ![mahlukat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mahlukat](https://forums.unrealengine.com/u/mahlukat)\
**Post date:** [March 31, 2020, 9:07pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/180 "2020-03-31T21:07:42Z")

</div>

Hi @lazybitgames , today I bought it, and thats a great package, thank you, its little bit expensive but quality is expensive always:))

I have some questions;

1. How can I change backlight options from blueprints for my own model? When I try to set material parameter from mMesh, unreal engine says “mMesh is not blueprint visibile, please fix mark up or cease accessing as this will be made an error in a future release”
2. Is it possible to reset camera inside the blueprint?(I mean when player play on it with mouse, but after if he wants to return back to default settings- for example if player press’ the middle mouse button, will reset back to same state as the beginning)

edit: sorry I saw the get mesh node now, ok forget the first question:)

Thanks.

---

<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 31, 2020, 9:53pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/181 "2020-03-31T21:53:17Z")

</div>

Hi @mahlukat  
You have already solved the first problem. For the second one, you cannot with blueprint but you can edit UFGearOrbitCamera component in c++. Or you may need to write your own custom camera code.

---

<div class="post-metadata">

**Author:** ![mahlukat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mahlukat](https://forums.unrealengine.com/u/mahlukat)\
**Post date:** [April 5, 2020, 11:49am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/182 "2020-04-05T11:49:27Z")

</div>

Hi @lazybitgames [USER=“2655059”]Last Coin Games[/USER] which way you most recommend to understand if the vehicle is drifting, inside blueprints? I’m trying to find when fgeareffects triggering but i couldnt find.

---

<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:** [April 5, 2020, 12:18pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/183 "2020-04-05T12:18:18Z")

</div>

> [@mahlukat](#):
>
> Hi @lazybitgames [USER=“2655059”]Last Coin Games[/USER] which way you most recommend to understand if the vehicle is drifting, inside blueprints? I’m trying to find when fgeareffects triggering but i couldnt find.

there is a script for that in unity version, you can try sth. similar in unreal:

```auto

float mDriftThreshold = 20f;
float mCurrentDrift = 0f;
float mTotalDrift = 0f;
Vector3 mLastDriftPos;

void Start()
{
        mLastDriftPos = Vehicle.getPosition();
}

void Update()
{
        float speed = Vehicle.getVelocitySize();
        float angle = Mathf.Abs(Vehicle.getSteerDeltaAngle(false));
        if (speed > 3f && angle >= mDriftThreshold)
        {
            float angleRatio = Mathf.Min(1f, Mathf.Abs(Vehicle.getSteerDeltaAngle(false) / 90f));
            mTotalDrift += angleRatio * speed;
            Vector3 cpos = Vehicle.getPosition();
            float dist = Vector3.Distance(cpos, mLastDriftPos);
            mCurrentDrift += dist;
            mLastDriftPos = cpos;
        }
        else mCurrentDrift = 0f;
}

```

---

<div class="post-metadata">

**Author:** ![mahlukat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mahlukat](https://forums.unrealengine.com/u/mahlukat)\
**Post date:** [April 5, 2020, 1:11pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/184 "2020-04-05T13:11:27Z")

</div>

@lazybitgames Thanks a lot, It worked… There are some problems(drifting still calculated even player fly) but i think it could be fixed… If anyone interested here is the blueprint nodes…

 ![drift.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/6/768da51f8e252f8780f3274a1e1164c75fe236f8.jpeg)  
 ![drift2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/5/b5a376c9d4fb1ca879d0570cd528caa85d866262.jpeg)

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

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