How could I freeze my character on a specific axis,
here is a scenario:
let’s say that my character can run on walls in a straight lines, when it’s running I should limit it’s moving axis so the gravity have no effect, and when the character decides to jump off the walls I should make it free again.
I’m looking for something like constraints in Unity3d gaming engine
There are options in the Character Movement Component to constrain the character to a plane (you specify the plane), and I think you can also modify gravity, combining those might get you what you need!
First open your pawn blueprint, which you can find labeled as Pawn under Blueprints toolbar button of the editor. Then go to the components tab at the right and select “CharacterMovement” component at the left. Now in the details panel find this section:
And hover the mouse over each of the properties to see how you can use it.
-Edit: To give a simple example, let’s say you want to “freeze” y axis so the game will happen in the X-Z plane, then in that shot, just change the Y component of PlaneConstraintNormal property to 1, and assuming your game happens at Y=0, which should be the case, it’s ready.
Thank you, that works totally fine with Character blueprint type !! and I’m talking about Pawn type which ain’t have any “character movement” component . I’m trying to figure out how add custom one, or even import it somehow for my Pawn