No announcement yet.

how to prevent character side movement in Y axe ?

  • Filter
  • Time
  • Show
Clear All
new posts

    how to prevent character side movement in Y axe ?

    The side scroll project have only forward movement , and i like to make a game depending on this project like the trine game , but the problem is when the character face something like sphere it will get pushed in a side so he resume his normal forward path but he is pushed away from the 0 Y axe to something like 100 unit away from zero Y axe so how to prevent the character to move in Y axe even when he encounter such object that will slide him from his Y axe ?


    If I remember well (I'm not using my pc right now) , there is many ways to do that :

    1- This will affect you character only : Go to CharacterMovementComponent , and lock movement on Y axis or allow XZ (I dont remember)

    2- This will affect all Characters and physics objects : Go to Project setting -> Physics ->
    Website [ LINK ]
    Twitter [ LINK ]
    Support ! [ LINK ]


      @ Mhousse1247 yeah found it it called some thing like character movement constraint planner , thanks a lot i thought its going to be hard to find such way but its unreal
      Last edited by mhnoni; 05-26-2016, 05:17 PM.