1. #1

    Rotate Object Using Controller Input

    Hey Trials Editor Community! I'm very, very new to making tracks and I want to know how I can make an object rotate using the controller as a part of a custom track. For example, I wish to make a ramp under the rider and rotate it using either joystick and to keep it rotating until the joystick is let go of. That's just the start, I then want to make a circular loop track and rotate it like a wheel with the controller while the rider is inside. How would I do that too? I hope I'm not being too vague. All advice is appreciated.
    Share this post

  2. #2
    Easy done . You can do this a couple of ways.
    * The OPE will somewhat phase into the tires. To avoid this, connect the OPE to a Dummy Object,
    then connect the Dummy to the object you're rotating using a Physics Joint set to Point-to-Point.
    The platform will then require [x] Physics. Both Dummy and platform need mass set greater than 10.

    > Rotate at a set speed using the L or R Controller Inputs:
    >
    Object Position Event (OPE).
    [x] Rotate
    [x] Local
    Rotation angle = Variable Data Source (VDS)
    Target = Object to rotate
    If you add position data, uncheck Local for Position.

    [Rstick Left]
    on Down > Set Variable Event 'Decrease' > VDS
    Variable Event's Event/Filter > OPE

    [Rstick Right]
    on Down > Set Variable Event 'Increase' > VDS
    Variable Event's Event/Filter > OPE

    > Rotate the platform with 3 different speeds based on how much you move the joystick.
    >
    Game Variable Data Source (GDS) = Left or Right stick Horizontal

    Interval Trigger
    ticks = 1 (00:00:016)
    Target > Set Variable Event 'Increase' or 'Decrease' = GDS > Variable Data Source
    Variable Event's Event/Filter > OPE

    VDS
    Interpolate (to smooth the movements)

    Object Position Event (OPE).
    [x] Rotate
    [x] Local
    Rotation angle = Variable Data Source (VDS)
    Target = Object to rotate
    If you add position data, uncheck Local for Position.
    Share this post

  3. #3
    Thank you so much! I will try this out when I get the chance.
    Share this post

  4. #4
    Well I finally got to it. Took me a little while, but I did get this method working for both the platform and a circular loop I added as well. Thank you so very much again!
    Share this post