- Home /
A other way to say transform.LocalScale.x
So as some of you may know there is problem with OnTriggerExit2D. the problem is that it doesnt work if you use transform.localScale. And you use transform.localScale to rotate the player 180 so his facing the other way. So my question is: Is there any other way to change the way the player is facing?
Answer by SkaredCreations · Mar 23, 2014 at 06:23 PM
Why should someone use localScale (that is the scale/size of a mesh/sprite) instead of the normal way by using rotation/localRotation/eulerAngles/localEulerAngles? I find it non-sense or I'm missing something from your game logic.
Yeah, im sorry i shoudl have explained that a little better. Its because when i made the script, if i used transform.Rotate it would rotate the camer a 180 degress as well. But the player has a width of 8. So if i changes the scale to -8 he would face the other direction. And the camera didn't get affected by it.