Isometric Movent Issue
Hello!
I'm kind of getting into game development, just as a hobby, i'm really liking it so far but i have reach my first obstacle
I'm moving my character with ASWD, a Rigidbody and this script:
void FixedUpdate()
{
float moveX = Input.GetAxis ("Horizontal");
float moveY = Input.GetAxis ("Vertical");
Vector2 movement = new Vector2 (moveX, moveY);
GetComponent<Rigidbody> ().velocity = movement * moveSpeed * Time.deltaTime;
So far i have tried to use quaternion, and eulerAngles but i cant get it to work properly, i either slam my character into a wall or start rotating
This image by user @neroziros show what i need
My camera is not rotated in a 45 degree angle, i used a isometric tile grid
The blue arrow is what i have right now
And the red arrow is what i'm trying to accomplish
If someone could please explain me how i can accomplish this, i would be really grateful
Than you so much for your time!
Thank you so much!
Your answer
Follow this Question
Related Questions
Problem with Jump script 1 Answer
how to move a gameobject based on a dice roll 1 Answer
Prevent rigidbody from sticking to wall? 0 Answers
Isometric movement for MoveTowards 0 Answers