1. #1

    Rider Lean Forward/back direction swap

    Have a track with a driving line that is a large figure 8 and starting position is nearly center of that. I plan to keep the camera facing the rider as well as the center of the circles. Starting off I have to have the camera on the opposite side rather then the usual side. What can I do to change the leaning until the rider makes it to the other half of the track where camera and lean direction will go back to normal?

    !*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!* !*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!
    Rather then bumping this topic with a reply. I am just going to edit this post.
    dasraiser's reply came before this edit and his schimatic works and can be used for leaning.
    I wasn't however able to get it to work with my figure eight track so I ditched that track and started over with something less complicated for me. I don't know if the figure eight is possiable or not. So if you are checking this out for info about changing lean direction, then yes, dasraiser has it right. I got it to work on other tracks.

    !*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!* !*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!
    (re edit) Some reason doing the swap before adjusting the curve works.
    Share this post

  2. #2
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195

    Re: Rider Lean Forward/back direction swap

    Hi, take a look at this google doc

    along the right edge there's a bit of code for lean on up/down, to mod this just

    change the 'Game Variable Data Source' to 'Left Stick-Horizontal Value' and possibly the two input operator (the one with 127 / 3) and make it -3 if it needs flipping, to enable disable this code simply state enable/disable the interval trigger with hit triggers as required.

    you may want to uncheck reset in checkpoint restart on the state event and interval so if a fault happens the lean state remains.
    Share this post