I am trying to make a bicycle blueprint with vehicle system. UE doesn’t handle 2 wheeled vehicle well, so I ended up with using invisible 4 wheeled vehicle. The vehicle can now stand still, but has some weird behaivours.
Problem 1: Vehicle doesn’t start/stop turning quickly.
(4 wheeled vehicle is visible for debug.)
My vehicle is controlled with WASD. AD for turning.
In the video, I press A to turn left, and release the button after some time (you can see the steering value on the left side.), but vehicle still turns. Also it takes a long time to turn right with D pressed.
This is unexpected behaviour for a bicycle. I want it to react faster. It should turn left/right as soon as possible after I press A/D.
Problem 2: Balance of vehicle.
If the vehicle jumps and lands, it takes a long time to return upright. It also loses balance on slope.
Also, I feel like the vehicle has bad balance even on flat floor.
Setup and what I tried
The blueprint inherits from WheeledVehiclePawn, and the root mesh is 4 wheeled bike(gray vehicle in the video). Both character mesh and bicycle mesh is under root mesh, and they have no collision so it doesn’t affect vehicle collision.
I made the vehicle blueprint, 2 wheel blueprints(front and back), and anim BP, following official document. But values in vehicle movement component is all default except Wheel setups, curves and center of mass.
I overrided Center of mass and set it to (0, 0, -40) because otherwise the vehicle can’t stand upright and move.
Collision and center of mass:
One thing that I have to note is that I use custom physical material for floor because other vehicle asset depends on it.
I tried disabling Suspension Enabled and setting Suspenction Max Raise/Drop to 0 or 0.1 but no help.
I have been trying to fix these issues for a week but no luck. Any advise appreciated.