Hi, in my game I am making an enemy walk across grass and then when its x position is greater than 22 then it rotates 180 degrees and goes the other way. When it does this it doesn’t seem to rotate straight away, instead, it keeps moving past 22 and then rotates very slowly in a big loop. Can anyone help me in C# preferably, to stop the object from moving when it reaches 22 or greater on the x axis and rotate 180 degrees around its centre point, not a big loop! And then start walking again…
BUMP!
Can anyone help me…?
Add 180 to y axis of eulerAngle