How To Limit Character Rotation On A Sloped Platform

Discussion in 'How Can I...?' started by Boxer Brian, Dec 29, 2021.

  1. Boxer Brian

    Boxer Brian Boxer

    Jan 30, 2020
    Likes Received:
    Hey all,

    So I am working on a platformer game in Buildbox 3. My character is riding inside of a shopping cart set to always be moving forward. I'm wondering how to get the character to look like he is following a sloped path correctly. At the moment he may ride along the hill correctly for a while, but if he jumps or bumps into something he will likely fall over and slide on either his back or top of his head and keep moving along the path (like in the attached screenshot). I basically want his y rotation to always equal the slope of the platform he is riding on, if that makes sense. Anyone have any ideas on how to accomplish this? I can't for the life of me figure it out.

    Attached Files:

Share This Page