↧
Answer by Jesse Anders
Try removing this line:moveDirection = transform.TransformDirection(moveDirection); And see what happens. (If 'moveDirection' is already in world space, there shouldn't be any need to transform it. I...
View ArticleAnswer by Fubiou
Hey, I found a simple way to flip the 2d character with a simple line: transform.localEulerAngles = transform.eulerAngles + Vector3(0,180,-2*transform.eulerAngles.z);
View ArticleAnswer by Jesse Anders
Try removing this line:moveDirection = transform.TransformDirection(moveDirection); And see what happens. (If 'moveDirection' is already in world space, there shouldn't be any need to transform it. I...
View ArticleAnswer by Fubiou
Hey, I found a simple way to flip the 2d character with a simple line: transform.localEulerAngles = transform.eulerAngles + Vector3(0,180,-2*transform.eulerAngles.z);
View Article