Character moves in camera direction

How do I…
how do i make it so that i can face up and move forwards (with w key) and my character will go up (the direction im facing)

What is the expected result

i expected the character to move in the directin my character was moving

What is the actual result

when i look up and go forwards, the angle doesnt change and i keep going in the same direation

Related screenshots

This sounds like you are moving the player by changing the X & Y positions. To correct this would involve trigonometry.

Instead you should look applying forces at the angle the player is facing.


You can get a more specific answer if you screen shot the movement events.

You mean pressing W pushes player whatever direction he is facing?
So if you are facing bottom left and press W you don’t go up but go bottom left?

If so then you add force to player toward Player.Angle()

theres no force angle in 3d as far as i know
i made a gif but the file size was too big so i just made an image in paint sry confused you with the drawing but its actually 3d
i dont have any code except for this because im using the 3d platformer extension

No, there doesn’t appear to be. There are actions to apply a force by giving the X, Y & Z components. However, this’ll require a bit of maths to figure out.

The X & Y force would be based on the character’s angle, though I’m not sure if this is affected by the up/down angle the player is facing. The Z force will be based on the up/down angle the player is facing. Remember each component should be normalised before multiplying it by the force.