No announcement yet.

SOLVED: Flying Character Max Roll?

  • Filter
  • Time
  • Show
Clear All
new posts

    SOLVED: Flying Character Max Roll?

    Is there a way to set a max Roll on a Local Rotation?

    I finally have my character flying based on the camera forward vector and flying up or down.

    I am trying to get the mesh to kinda follow the direction as well, instead of always staying completely horizontal.

    2 problems I cant figure out.

    1. How to set the MAX local rotation?
    2. How do I reset a Local Rotation to root when it lands on the ground?

    When ever my character lands it kept the local rotation during the flying movement, and I know ti wont do it on its own unfortunately LOL
    Attached Files
    Last edited by MindfieldsTech; 07-20-2020, 10:41 PM.

    Solved it. I added an event tick and set world rotation based on if flying or not =)

    If anyone would like to see the code let me know!