FGear Vehicle Physics (v1.4)

Then i guess the ABS in the previous version not was correct, if now it works as expected.

I expect being able to brake and steer more/better with ABS at 100% than 0%, that is what happened in previous version. But seems now with more ABS it may brakes faster or reduces speed fast making the steer lower.

If i understand well how ABS works it brakes in some intermitent way, avoiding bloking the wheels completly and letting you steer while that having more control and at same time it brakes/reduce speed faster.

But well, i guess i will need to set now 50-100% on ABS or tweak other values to compensate and get the same behaviour. Just wanted to be sure now ABS is how it should be and no bugs in code so i can test and do my tweaks.

Is there any way how to completely freeze a car and later unfreeze? Should not react to physic and gravity.

Hello @lazybitgames where i get the new project files? seems like you changed some things like models 3d , etc.

try calling Vehicle.sleep and then setSimulatePhysics(false)

1 Like

example project link is on the market page.

Uh, here I go again. I don’t know why the mobile control UI still doesn’t work. Is this my problem? Can you give me a guide? Even after packing it cannot be moved. My version is the latest UE5.3/1.7 version

Look in the example project, there is a mobile UI example

I looked but after packaging it doesn’t work which is weird it works fine inside the editor

Have you or anyone got an example of an .fbx car with the bones setup ready for ue5?

I’m using the sample project packaging could it be an input issue with the project settings?

Sadly this does not work, car is still active, gravity, everything. Any other idea?

I tried it with a button press and it worked. if you call it at beginplay try putting a short delay before the call.

Should we create a Discord channel so that the problem can be solved quickly?

1 Like

Yes, it works in example, but not in my game. But there is some bug somewhere. I have overlapping sphere collision around player and when is the car inside that collision, then is impossible to sleep the car.

The car is spawned in air above slope, then will fall down and drive outside of the sphere collision. I pressing key for sleep the car and it will sleep it only when drive outside from the collision, not on the slope.
image

Sphere actor:

It is bug in FGear?

use mail for direct support, if it’s your first time put a screenshot of your invoice.

if you read this post you can see a remark about sleeping: A vehicle that is touching another simulated actors bounds can’t go to sleep…

but this is about fgear’s sleeping feature, if you disable simulate physics then it’s not re-enabled except at beginplay of replication component…

Hmm, but that actor is not simulated. Anyway my character is. So there is no way how to freeze the car in a crowded game? I need to freeze quest car in openworld game so when you come back, the car will be still there and it will not fall down when ground will be unloaded. The solution to save position etc., destroy car and when I come back then spawn car on the same position is quite complicated, because of all things like animations in middle of playing etc. if it is ever possible.

That disabling simulated physic on mesh doing nothing.

if you let a vehicle go to sleep when there is another object in contact then it can lead to objects penetrating each other, this is a problem of the physics engine so we can’t do anything about it.

disabling simulated physics makes the car a kinematic object and there is no way to move it except a manual move. the downside is if you keep applying forces then unreal will probably complain with warnings that’s why you also want to call our sleep function.

so in your case you can do one of the below:

1-modify fgear to remove that constraint so that vehicles can go to sleep anytime but you’re gonna have to deal with any side effects.

2-go with an alternative solution like the one you mentioned. I would teleport the vehicle to a safe hidden room instead of destroying it. and when needed you can teleport back instead of re-spawning.

Without sleep? If I will set simulate physic false to car mesh, then the car continue falling with gravity and everything. It will not freeze (tried in example project). Only what freeze it is sleep function (when nothing else overlapping it).

if it is still moving then it should be re-enabled at some point.
that’s why I asked you about beginplay because it is enabled at beginplay.