# Need help with facing direction in 3d beatem up

I don’t know where to start on making a left and right facing direction for my 3d beatem up. I need to lock a left and right facing direction for the combat moves but still be able to walk up and down the screen.

Are you familiar with animation set up in Unity? If not - check the animation learn section for guidance.
Are you using root motion or not?

I’m using the move Horizontal and Vertical with Vector3. I don’t have much practice in programming,

Then you should put your 3D beat-em-up aside for a while, and spend a few weeks or months working your way through some of the many excellent Unity tutorials. This will actually get your dream game done much faster than if you try to just muscle your way through, wasting days and weeks wandering around in a cloud of ignorance.

(If you’re really making a 3D game, then making your characters face left or right should be trivial: just rotate them about the Y axis. It will actually seem trivial only after you’ve mastered the basics, using the learning materials above.)

2 Likes

Something you could try doing is searching for your problem in google, combined with the keyword ‘unity3d’. unity3d has a unity3d answers site and they questions with answers get listed on google. They ask beginner questions such as, how to move game object.

1 Like

I’m not entirely sure what the problem is, other than that, the player model could be at an arbitrary rotation and you want to make sure they’re looking left or right.

What I’d do is check the players Y rotation angle, and mathf.LerpAngle them towards 90/270. LerpAngle assumes angles will be 0-360, so it can be good practice to sanitize all the angles by doing taking your angle = (angle + 360) % 360.