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

<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:** [October 14, 2019, 3:12pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/42 "2019-10-14T15:12:02Z")

</div>

> [@Mellnik](#):
>
> Some suggestions and requests:
> 
> You have very much logic inside the AFGearVehicle class. Most of that should be inside of a component instead. The reason for that is it makes inheritance easier. For example in my project I have a base class “AVehicle” that inherits APawn. Now there is ABoat, AHelicopter, AWheeledVehicle and APlane. All of them inherit AVehicle.  
> For cars I use the default UE4 vehicles right now so I just have to add some components to AWheeledVehicle. If I wanted to use your plugin I would need to copy everything from AFGearVehicle to AWheeledVehicle.
> 
> Do not override UPhysicalMaterial. It just makes everything harder for existing projects to use your plugin. I would need to recreate all physical materials. It also prevents users from defining settings per vehicle (friction, roughness, smoke particles etc.)  
> Instead do it similar to UE4’s vehicle system. They have a tire config class where you can define friction etc. per physical material surface. You can then assign the tire config per wheel. (You already have UFGearTire or UFGearWheelOptions that you could use here.)
> 
> Do not override USkeletalMeshComponent. Basically same as above. Makes it hard to switch to your plugin. I also see no usage of your custom class in the code.
> 
> Replication! I know it’s already on your list, just saying this is important.
> 
> Backfire detection for the effects class. Somebody else already suggested.
> 
> Support for more platforms. Probably works but if you could support Linux and Mac that would be great.

hi, thanks for the suggestions.

-we could separate driving assists and maybe telemetry from AFGearVehicle class but i do not think that it would fully prevent your inheritance problem.

-we will look into the physical material and the skeletal mesh component issues.

-replication and backfire are in our todo list.

-unfortunately these extra platforms require a lot of effort to support and we do not have the hardware for mac/ios and we have little to no experience with linux. i believe you can manually compile the source for any platform since there is no external dependency except a few unreal plugins.

---

<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:** [October 25, 2019, 3:47pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/43 "2019-10-25T15:47:35Z")

</div>

there is an issue that breaks the library if you want to **manually compile** with **visual studio 2019**

solution1 : stick to vs2017  
solution2 : try the workaround [mentioned in this topic](https://developercommunity.visualstudio.com/content/problem/734585/msvc-142328019-compilation-bug.html).

---

<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:** [October 26, 2019, 7:59pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/44 "2019-10-26T19:59:03Z")

</div>

Hi all,  
I am the other programmer in this project. Multiplayer(replication) added. I’m testing. If there is no problem we will post it in the next update.

---

<div class="post-metadata">

**Author:** ![Mellnik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mellnik](https://forums.unrealengine.com/u/Mellnik)\
**Post date:** [November 10, 2019, 12:58pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/45 "2019-11-10T12:58:00Z")

</div>

How is it going with the update?

---

<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 10, 2019, 1:58pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/46 "2019-11-10T13:58:44Z")

</div>

> [@Mellnik](#):
>
> How is it going with the update?

a little more things to be done, we will try to release before december.

---

<div class="post-metadata">

**Author:** ![Mellnik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mellnik](https://forums.unrealengine.com/u/Mellnik)\
**Post date:** [November 10, 2019, 2:22pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/47 "2019-11-10T14:22:05Z")

</div>

Really looking forward to this plugin and the update. Hopefully some of my suggestions have been taking into consideration 😃  
Keep it up!

---

<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:** [November 20, 2019, 11:56pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/48 "2019-11-20T23:56:25Z")

</div>

I’m using a now abandoned vehicle physics plugin and I’m looking for a new one and just ran across this. So far, most things seem really great. I just had a few questions.

I need the following:

1. Change any transmission value in realtime (changing the number of gears and their ratios). Change from automatic to manual and back again in realtime (looks like this is supported)

2. Change any engine value in realtime.(looks like this is supported)

3. Change any suspension setting in realtime. It looks like this plugin supports most of what I need, but I’m not sure if I can “lift” or “lower” a suspension in realtime since this plugin uses the resting pose of the rig as a reference. I need to be able to swap in a ‘lift kit’ into a vehicle to raise it for use with bigger tires. Then put in ‘stock’ suspension to lower it back down for use with smaller wheels/tires. The plugin I’m using now lets me adjust the suspension length in realtime and that seems to do what I need.

4. Changing the mass of the vehicle depending on what’s equipped to the vehicle in realtime. My game is a car combat rpg, so equipping different armor, engines, weapons, etc. all affect the weight of the vehicle. From what I’m reading, that is not supported.

5. My game can’t have ‘auto-reverse’. When I hit the brake, I need it to just brake. Reverse requires shifting and using the gas pedal to accelerate in reverse (just like a real car).

From what I’m reading here, 1-2 looks like it’s supported and I’m not sure about 3-5. Let me know! 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:** [November 21, 2019, 2:58am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/49 "2019-11-21T02:58:21Z")

</div>

> [@xetura](#):
>
> I’m using a now abandoned vehicle physics plugin and I’m looking for a new one and just ran across this. So far, most things seem really great. I just had a few questions.
> 
> I need the following:
> 
> 1. Change any transmission value in realtime (changing the number of gears and their ratios). Change from automatic to manual and back again in realtime (looks like this is supported)
> 
> 2. Change any engine value in realtime.(looks like this is supported)
> 
> 3. Change any suspension setting in realtime. It looks like this plugin supports most of what I need, but I’m not sure if I can “lift” or “lower” a suspension in realtime since this plugin uses the resting pose of the rig as a reference. I need to be able to swap in a ‘lift kit’ into a vehicle to raise it for use with bigger tires. Then put in ‘stock’ suspension to lower it back down for use with smaller wheels/tires. The plugin I’m using now lets me adjust the suspension length in realtime and that seems to do what I need.
> 
> 4. Changing the mass of the vehicle depending on what’s equipped to the vehicle in realtime. My game is a car combat rpg, so equipping different armor, engines, weapons, etc. all affect the weight of the vehicle. From what I’m reading, that is not supported.
> 
> 5. My game can’t have ‘auto-reverse’. When I hit the brake, I need it to just brake. Reverse requires shifting and using the gas pedal to accelerate in reverse (just like a real car).
> 
> From what I’m reading here, 1-2 looks like it’s supported and I’m not sure about 3-5. Let me know! Thanks.

hi,

1,2,3 are already possible.

4 will be possible in the next version : mass, center of mass offset and inertia scale will be editable during runtime.

for 5 i assume you need an auto-gearbox without auto-reverse, i will add an option to disable auto-reverse for the next version.

about the next release, we are in the testing phase right now, it will be available in a week or two.

---

<div class="post-metadata">

**Author:** ![JGauthier1971](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JGauthier1971](https://forums.unrealengine.com/u/JGauthier1971)\
**Post date:** [November 21, 2019, 10:37am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/50 "2019-11-21T10:37:26Z")

</div>

Looks great!  
Will you add support for vehicle with less than 4 wheels? Trikes and bikes?

---

<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, 2019, 12:26pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/51 "2019-11-21T12:26:28Z")

</div>

> [@JGauthier1971](#):
>
> Looks great!  
> Will you add support for vehicle with less than 4 wheels? Trikes and bikes?

no, there is no such plan.  
you can fake it though(by keeping the left/right wheels at the same spot and/or disable one of them).

---

<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:** [November 21, 2019, 9:33pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/52 "2019-11-21T21:33:10Z")

</div>

> [@lazybitgames](#):
>
> hi,
> 
> 1,2,3 are already possible.

Glad to hear 3 is already supported.

> [@lazybitgames](#):
>
> for 5 i assume you need an auto-gearbox without auto-reverse, i will add an option to disable auto-reverse for the next version.

Correct. The automatic transmissions in my vehicles are normally driven in ‘drive’, but can shift into other gears like a normal automatic can: park, reverse, neutral, 1st, 2nd, and drive. Then I have a toggle between drive and reverse. Thanks for including this! That’s great to hear.

> [@lazybitgames](#):
>
> about the next release, we are in the testing phase right now, it will be available in a week or two.  
> 4 will be possible in the next version : mass, center of mass offset and inertia scale will be editable during runtime.

Awesome! I’ll be on the lookout for the new version.

---

<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 25, 2019, 6:55pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/53 "2019-11-25T18:55:36Z")

</div>

updated sandbox demo is [available](https://www.dropbox.com/s/8rqvgvxxmlp1hs7/FGearUnrealSandboxDemo2.rar?dl=0)

two additional setups are included, these are using the ArcadeAssists component.

- drift : easy to drift, hard to control.
- arcade : minimal understeer & oversteer, easy to control.

 ![ss.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/f/1f8f1841c17ec363dba3a627c8ae5d65f5ef8d51.jpeg)

about the upcoming update, we have got troubles with the 4.23 version. replication works fine with 4.22 but problematic with 4.23.  
we only synchronize inputs in addition to regular actor replication but somehow clients can get out of sync with the server. we will look into that for a few more days…

---

<div class="post-metadata">

**Author:** ![mhnoni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mhnoni](https://forums.unrealengine.com/u/mhnoni)\
**Post date:** [November 25, 2019, 9:45pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/54 "2019-11-25T21:45:44Z")

</div>

@\*\*[lazybitgames](https://forums.unrealengine.com/member/324677-lazybitgames)\*\*Have you guys worked on any AAA racing game, since your work is great? and any video showing the last update regarding drifting?

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:** [November 26, 2019, 6:34am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/55 "2019-11-26T06:34:06Z")

</div>

> [@mhnoni](#):
>
> @\*\*[lazybitgames](https://forums.unrealengine.com/member/324677-lazybitgames)\*\*Have you guys worked on any AAA racing game, since your work is great? and any video showing the last update regarding drifting?
> 
> Thanks

thanks for the compliment 🙂 no we haven’t worked on any AAA title.  
we might upload a video before the next release.

---

<div class="post-metadata">

**Author:** ![mhnoni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mhnoni](https://forums.unrealengine.com/u/mhnoni)\
**Post date:** [November 26, 2019, 12:22pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/56 "2019-11-26T12:22:29Z")

</div>

> [@lazybitgames](#):
>
> thanks for the compliment 🙂 no we haven’t worked on any AAA title.  
> we might upload a video before the next release.

Looking foreword for the video. I forgot to ask, is there are any support for Racing Wheels like logitech g29 or any common racing wheels? or maybe add it to the future plan?

---

<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 26, 2019, 12:41pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/57 "2019-11-26T12:41:14Z")

</div>

> [@mhnoni](#):
>
> Looking foreword for the video. I forgot to ask, is there are any support for Racing Wheels like logitech g29 or any common racing wheels? or maybe add it to the future plan?

you can use a steering wheel and gearbox, i do have a g29 and i have tested fgear without problems, there is no forcefeedback though.  
there is a sample forcefeedback script in unity version, we could add a similar optional component in the future but we do not want to add external dependencies to the library. may be we can just provide the source code of the component without including in the plugin, we will consider it when the time comes.

---

<div class="post-metadata">

**Author:** ![mhnoni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mhnoni](https://forums.unrealengine.com/u/mhnoni)\
**Post date:** [November 26, 2019, 2:44pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/58 "2019-11-26T14:44:54Z")

</div>

> [@lazybitgames](#):
>
> you can use a steering wheel and gearbox, i do have a g29 and i have tested fgear without problems, there is no forcefeedback though.  
> there is a sample forcefeedback script in unity version, we could add a similar optional component in the future but we do not want to add external dependencies to the library. may be we can just provide the source code of the component without including in the plugin, we will consider it when the time comes.

Yeah that will be great, or even a short video on how to to that. anyway I’ve added the asset to my wishlist, once I get it I will get back here asking for these extra things. till then good luck guys with your project.

---

<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:** [November 28, 2019, 9:43am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/59 "2019-11-28T09:43:03Z")

</div>

I went ahead and picked this up earlier today and got a vehicle setup. I’m really impressed so far. Once I set a smaller box collision for the inertia collision and a separate mesh for regular collisions, everything works really well. The vehicle out of the box handles great and behaves like a vehicle should.

I’m not seeing any options to set the torque curve in real-time. Not sure if I’m not looking for the right thing or if this isn’t possible? This is something I’m going to need for my game.

I was also wondering how you got the info on the telemetry screen that says ‘108hp@4100rpm’ and max speed in each gear? I’m assuming it was some kind of math, but I thought I’d ask since I’d like to use that info in my game. 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:** [November 28, 2019, 3:31pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/60 "2019-11-28T15:31:08Z")

</div>

> [@xetura](#):
>
> I went ahead and picked this up earlier today and got a vehicle setup. I’m really impressed so far. Once I set a smaller box collision for the inertia collision and a separate mesh for regular collisions, everything works really well. The vehicle out of the box handles great and behaves like a vehicle should.
> 
> I’m not seeing any options to set the torque curve in real-time. Not sure if I’m not looking for the right thing or if this isn’t possible? This is something I’m going to need for my game.
> 
> I was also wondering how you got the info on the telemetry screen that says ‘108hp@4100rpm’ and max speed in each gear? I’m assuming it was some kind of math, but I thought I’d ask since I’d like to use that info in my game. Thanks!

hi, glad you like it.

you can get the torque curve with “UCurveFloat\* UFGearEngine::getTorqueCurve()” method and modify it, there is no method to directly set a new curve, i will check if such method is necessary and include it in the next release. you can also scale the engine torque with the setTorqueScale method.

engine power is calculated with “UFGearEngine::calculateMaxPower” method but it is not currently available in blueprints, i can also make it blueprintcallable if you need.

transmission speed calculation is in “UFGearTransmission::refreshParameters” method but currently there is no way to access those data. just like the others i can add a new function to access these data.

---

<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:** [November 28, 2019, 6:20pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/61 "2019-11-28T18:20:11Z")

</div>

> [@lazybitgames](#):
>
> hi, glad you like it.
> 
> you can get the torque curve with “UCurveFloat\* getTorqueCurve()” method and modify it, there is no method to directly set a new curve, i will check if such method is necessary and include it in the next release. you can also scale the engine torque with the setTorqueScale method.

I’m only using blueprints, so I’m only able to get the torque curve’s name right now. My game has a ton of vehicle upgrades. I have straight 6 motors, several v8’s, a v10 and some diesel motors. Then I have different pistons, crankshafts, intake manifolds, etc. So I need to be able to set the torque curve for each motor since they’ll be very different from one another. With the previous plugin I had, I was able to do this at runtime and it worked well.

 ![equip_engine.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/a/da2c8644c045abb3381924232054a5c2f9d06401.jpeg)

> [@lazybitgames](#):
>
> engine power is calculated with “UFGearEngine::calculateMaxPower” method but it is not currently available in blueprints, i can also make it blueprintcallable if you need.  
> transmission speed calculation is in “UFGearTransmission::refreshParameters” method but currently there is no way to access those data. just like the others i can add a new function to access these data.

That would be awesome. I was hoping to show this info when a player is deciding on what upgrades to use on their motor and give them a preview of the power gains and speeds in each gear.

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

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