Hello guys!
I have this issue where the character turns from the opposite side of the camera.
I want him to turn from the side of the camera. Ive tried things with get control rotation, right vector and other stuff but I cant seem to understand how to make that happen
Here is the code of the movement:
Are you using Orient Rotation to Movement within a character class? If so, you want to add a slight bias to the movement direction so that the character moves slightly in the direction you want to turn.
This may not be ideal for a side-scroller though, as after playing for a while your character may fall off the map due to the slight movement towards the camera. Ideally, you want to make your own function to rotate the character, rather than relying on Unreal’s (abysmal) Orient Rotation to Movement.
Yes, I am. Should I disable it and make my own function? Havent done that ever. Do you have any pointers on where to start and how should I approach this?
Here’s what that looks like for me. The animations are a bit misleading but the floating arrow points in the actor’s direction. The direction is printed to the screen in the top left as well, this Print String and its Select node can be removed.
Keep in mind you may need to play with the values depending on which direction the camera and input actually consider to be right and left. In my example an Actor Rotation of (x0, y0, z0) is considered right, which is the direction I’m facing in the beginning of the video and left is (x0, y0, z180). Let me know if you need more explanation.