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

<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:** [February 6, 2021, 11:01pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/389 "2021-02-06T23:01:16Z")

</div>

I have one question about UFGearAutoDrive component. It works great. But would be possible to extend it also for city traffic, not only for racing? I would like to use it like that, but that would need to have not closed splines (so I could set new target spline on junctions), and ability to set some max speed (for example 50 kmh in city, 90 outside city) and also possibility to set lower throttle. What do you think about it?

---

<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 7, 2021, 1:55am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/390 "2021-02-07T01:55:02Z")

</div>

> [@rotacak](#):
>
> I have one question about UFGearAutoDrive component. It works great. But would be possible to extend it also for city traffic, not only for racing? I would like to use it like that, but that would need to have not closed splines (so I could set new target spline on junctions), and ability to set some max speed (for example 50 kmh in city, 90 outside city) and also possibility to set lower throttle. What do you think about it?

you can easily update its functionality for your needs by modifying the source but i don’t think it could be used(as is) for your case.

---

<div class="post-metadata">

**Author:** ![oofvegetable](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@oofvegetable](https://forums.unrealengine.com/u/oofvegetable)\
**Post date:** [February 8, 2021, 1:02am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/391 "2021-02-08T01:02:07Z")

</div>

Hello lazybitgames, I just stumbled upon this page yesterday and I have to say I am very satisfied with the broad range of vehicles (I tried the sandbox), if you can add tracked vehicles like tanks and more in future updates, it will be even better. Good luck with the project!

---

<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:** [February 19, 2021, 3:54pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/392 "2021-02-19T15:54:01Z")

</div>

Hello,

I have one problem, but don’t know if I doing something wrong or if is it possible to solve it.

**What I want to achieve:**  
Have physical object which have two parts. 1. part have kinematic physics (can be animated by animations). 2. part have simulated physic and is afected by gravity forces etc. This physical object works perfectly when I place it into level. I want to attach this object to the fgear car.

**Where is the problem:**  
If I will attach that physical object to a car, and start driving, then kinematic part is ok. But simulated part will start lagging behind the car. Faster speed = bigger lag (it will move away from the kinematic part which should be impossible). It is probably similar like wheel collisions - they also lags behind actual wheels objects, but wheel collisions are invisible so it does not matter much.

Do you think that is possible to solve it somewhat? I am doing anything wrong? I attached example files of the physic object and BP that is needed to add to the car.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/e/3be0af7cc870c1ea573ad4132e4e3ca698a21546.jpeg "object lag") ](https://www.youtube.com/watch?v=qof0buV1wRs)

On the video is visible that swinging part are moving away from the box as I drive. But it should swinging still on same place, like when I stopped the car.

---

<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 19, 2021, 5:38pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/393 "2021-02-19T17:38:54Z")

</div>

@rotacak

first of all this is not a problem related to fgear, even if you attach that object to a regular rigidbody, it would behave the same.

i can not recreate the case since boxbp is not included in the zip. when you attach that object to the vehicle body it’s not kinematic anymore, it’s kinda part of the vehicle body and i do not know how you connected with the dynamic part, it seems like there is a joint there but not sure, need more data and info about this one.

---

<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 19, 2021, 6:49pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/394 "2021-02-19T18:49:24Z")

</div>

Hi @rotacak  
what exactly will you use it for? For the fender? maybe it can be solved another way.  
I will test on my pc and let you know.

---

<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:** [February 19, 2021, 7:32pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/395 "2021-02-19T19:32:14Z")

</div>

@lazybitgames: boxbp is included in the zip, in box directory “box\boxbp.uasset”. In short the skeletal mesh have two bones, main and child. Main is for kinematic part and child is for simulated part.

@lastcoingames: hard to find it somewhere but you can look here, it is used for this: [\*Holbra VLOG\* #56 Tatra 148 a Man - problémy na skládce - YouTube](https://youtu.be/ZfIKEIOr5Wc?t=781)

Here is demo project with this things, use car under number 5: [155.4 MB file on MEGA](https://mega.nz/file/mGpXSYRL#i4yYG2mgEbXGy88tmGVyFqdgX89OIvzDCtF984aNwBg)

---

<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 19, 2021, 8:35pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/396 "2021-02-19T20:35:30Z")

</div>

@rotacak

your bp only contains an empty skeletal mesh and the physics asset is corrupted.

anyway i think you are on the wrong way, first of all mixing kinematics with dynamics is a terrible idea, kinematics means infinite forces and even if it’s possible the results will be problematic.

what i would do is to have independent dynamic bodies for the truck body, the bed and the tailgate and then connect them with joints.

do not drive physics with animation, drive animation with physics, that’s how it should be if you want interaction with the world.

here is a starting point : [Constraints User Guide | Unreal Engine Documentation](https://docs.unrealengine.com/en-US/InteractiveExperiences/Physics/Constraints/ConstraintsUserGuide/index.html)

---

<div class="post-metadata">

**Author:** ![TomaszuJerzy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TomaszuJerzy](https://forums.unrealengine.com/u/TomaszuJerzy)\
**Post date:** [February 20, 2021, 12:15pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/397 "2021-02-20T12:15:56Z")

</div>

Can i adjust centre of mass in this system? Make car more heavy on front or back?

---

<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 20, 2021, 12:22pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/398 "2021-02-20T12:22:48Z")

</div>

> [@TomaszuJerzy](#):
>
> Can i adjust centre of mass in this system? Make car more heavy on front or back?

yes, pdf documentation link is available in the market page, you can find explanations of all settings.

---

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

</div>

@**[lazybitgames](https://forums.unrealengine.com/member/324677-lazybitgames)**: Sadly, it behave still same. I tried only two simple static meshes connected with joints. The one without simulating physic is correct. But the physical one is still lagging. Or I still doing something wrong?

Project: [155.49 MB file on MEGA](https://mega.nz/file/SSAVSAKB#KjOesEgOsgvMsrP2b8KMb7vA9LOb9IwvfGsdydnnnPU)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/c/8eccdcf69863a18196227f2428e63523aa92bb55.jpeg "lag2") ](https://www.youtube.com/watch?v=Gk6FVluO6Po)

---

<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 20, 2021, 6:06pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/400 "2021-02-20T18:06:10Z")

</div>

@rotacak

tried it with a constraint component, i couldn’t connect child actor to root but added a dummy actor as a parent and it worked.

video : [https://www.dropbox.com/s/0l939cyqi5…72ao3.gif?dl=0](https://www.dropbox.com/s/0l939cyqi5i0cvt/o13uM72ao3.gif?dl=0)

---

<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:** [February 21, 2021, 3:40pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/401 "2021-02-21T15:40:05Z")

</div>

> [@lazybitgames](#):
>
> @rotacak  
> tried it with a constraint component, i couldn’t connect child actor to root but added a dummy actor as a parent and it worked.

Well, this works. But you can attach only pure mesh components. If you want to attach an actor, then it is problem. I would like to have Car BP (just car) and Bed BP (contains the bed and tailgate connected with a constraint) and attach Bed BP to the Car BP (or attach different Bed BP etc.).

If I doing everything correctly, then I think that is a bug in UE and they will not fix it (they does not care about vehicles). Your solution will be maybe usable (still don’t know what will happen with animations and other things) but it will complicate everything and I will have to save values, settings and sounds from the bed to the cars which is mess. Maybe somewhat to connect it with scene/actor component, if it will work? But this is probably only one solution when I want to have separated car and bed.

Another one is to have car together with bed+tailgate. There I cannot turn off physic simulation to kinematic (for locking tailgate), it still simulating. I can only enable all constrain limits but still is not locked on the place as rock (moving slightly when crash).

Maybe I have to something un/tick something in the actor to work, but dunno ☹

---

<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:** [February 21, 2021, 9:55pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/402 "2021-02-21T21:55:43Z")

</div>

@\*\*[lazybitgames](https://forums.unrealengine.com/member/324677-lazybitgames) \*\*btw, how did you managed to use that constrain correctly? I succeeded twice when testing it, but not anymore. If I will try it in a map, then it is ok, but in a car it is broken.

Look what will happen. Physic box it should be connected above car where constrain is. But is actually connected somewhere in the middle of the car. And also it looks like that constrain line is even disconnected from the constrain. And sometime (not on this video) it even changing length of constrain - it will just fall down to the ground… It just doing impossible things.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/0/3207886608f38fc8c0e9c1876f5a864c3981df0b.jpeg "lag3") ](https://www.youtube.com/watch?v=XeukCsO6J6Q)

---

<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 21, 2021, 10:06pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/403 "2021-02-21T22:06:17Z")

</div>

@rotacak when i put the dummy mesh at 0,0,0 then the constraint origin works correctly.

---

<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:** [February 22, 2021, 8:46am UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/404 "2021-02-22T08:46:20Z")

</div>

@lazybitgames: you was probably lucky. Can’t do that now - if I will add dummy mesh (dummy = without assigning mesh object) then the physic mesh will spawn totally out of car, seems like on 0, 0, 0 of the map ☹

Could you send me the car UE asset with that working constraint?

---

<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 22, 2021, 12:43pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/405 "2021-02-22T12:43:58Z")

</div>

> [@rotacak](#):
>
> @lazybitgames: you was probably lucky. Can’t do that now - if I will add dummy mesh (dummy = without assigning mesh object) then the physic mesh will spawn totally out of car, seems like on 0, 0, 0 of the map ☹
> 
> Could you send me the car UE asset with that working constraint?

it doesn’t work if you do not assign a mesh, it’s the same for me.

---

<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:** [February 22, 2021, 1:18pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/406 "2021-02-22T13:18:06Z")

</div>

> [@lazybitgames](#):
>
> it doesn’t work if you do not assign a mesh, it’s the same for me.

But it don’t work even when you will assign it. Just it doing different crazy things and not doing what it should do.

I discovered something: if you will move that two meshes and constraint under some scene component (for example under FGearEffects) then it will stop doing crazy things. But is lags again.

---

<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:** [March 2, 2021, 4:46pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/407 "2021-03-02T16:46:10Z")

</div>

Hello, me again 🙂

Is possible to set attenuation for skid sounds somewhat?

---

<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 2, 2021, 5:01pm UTC](https://forums.unrealengine.com/t/fgear-vehicle-physics-v1-4/128793/408 "2021-03-02T17:01:57Z")

</div>

Hi,  
You can control attenuation parameters with mSkidclipInnerRadius, mSkidclipFalloffDistance in FGearEffects. If you want to change more parameters, you should change code (UFGearEffects::initAudio) in FGearEffects or write new effect component.

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

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