#character movement

1 messages · Page 1 of 1 (latest)

junior badge
#

i used Mathf.Atan2 and Quaternion.Euler so my character can turn to the direction of any one of the WSDA keys and move forward to the direction of camera . it move to direction of camera but it wont turn to direction of WSDA keys.
this is my code https://gdl.space/osipakiniv.cs

eternal cosmos
#

You have used Mathf.Deg2Rad instead of Mathf.Rad2Deg

eternal cosmos
#

Did changing that fix the issue for you?

junior badge
#

Hi sorry for replying late. i didnt have access to my pc for yesterday . yes it fixed it thank you sooooooooo much!!!!!!!!!!!!!!!!!!!!!!!!!