How could I lock the character movement direction on one axis on an isometric view

Hi guys, here is my issue:

I’m making a top down isometric game and I’m currently trying to implement an object pulling system.
While pulling an object I want to lock the character movement direction on its backward vector so that it prevent the player from moving around the grabbed object.

Simply, how could I lock the character movement on one axis and one direction (backward vector of the character in that case), while grabbing the object?

Here is what I have so far:

Thanks in advance!

EDIT:
After some more research I found the Planar movement settings in the Character Movements that could be interesting if i could set the Plane Constraint Normal to half the X-axis and half the Y-axis. Which is not possible…

image_2023-11-29_145306959

This was so much simpler than I thought it would’ve been. We can just use the constraints you mentioned in the edit.

image
The rotation should be the rotation of the player when they’re looking at the target object. We’re just locking the right vector so the player can’t move right or left (relative to how we’re currently facing).

Just set plane constraint normal back to 0,0,0 when you don’t want to lock any axes.

That worked! Thank you very much :slight_smile:

1 Like