r/rewasd • u/z50_Jumper • 5d ago
Suggestion Trying to replicate a lean setting for a motorcycle sim game
There is a new MX Simulator game that was just released which is trying to compete with an existing sim game that has a much more elaborate settings menu. I am trying to replicate what is called a Direct Lean Gain where the joystick basically has a smoothed return to center so you can lean the bike over with full sensitivity and if you let go of the stick, the virtual stick slowly returns to center and moving the stick the opposite way would speed that movement up and catch up to a reverse movement but I cant seem to replicate that type of behavior and may need to be coded in as some kind of feature.
To re-describe this, if you think of the x or y axis as a slice of pie that gets expanded left or right as you move across the axis and the pie slice you create when opening it up becomes kind of a dead zone so you can let go of the stick and the virtual stick stays on the out side of the pie slice and slowly closes back to zero and pressing the stick the opposite way quickly closes that pie slice to catch up to creating the new pie slice oh the opposite side of the axis.
Basically the new game has a really high Direct Lean Gain which means the bike tries to follow the stick so letting go of the stick = bike straight up, where as my setting above, letting go of the stick = stayed leaned over.
1
u/z50_Jumper 5d ago
I also need the ability to apply this strictly to the X axis since I use the Y axis for other controls which cannot include this type of setting.