Author Topic: Control the bike with the inclination of the body  (Read 1177 times)


  • Newbie
  • *
  • Posts: 1
    • View Profile
Control the bike with the inclination of the body
« on: November 12, 2018, 03:18:24 PM »
<a href="" target="_blank" class="new_win"></a>

Hi, I had an idea to control the bike with the trackir or free alternative as opentrack, control is very natural and immersive, the tackir to make it work as joystick needs a program called FreePIE ,with a script that I let down and vjoy ,have set the direction of the bike and the position of the pilot stand up or shrink.

script:(is not mine, just to change it, only necessary for trackir )
def update():
        x = filters.mapRange(trackIR.x, -90, 90, -vJoy[0].axisMax, vJoy[0].axisMax)
        y = filters.mapRange(trackIR.y, -90, 90, -vJoy[0].axisMax, vJoy[0].axisMax)
        vJoy[0].rx = x
        vJoy[0].ry = y
if starting:
        trackIR.update += update
first open gpbikes, and then run script.
« Last Edit: November 12, 2018, 03:53:52 PM by Level »