- Home /
Question by
unity_Vtz0HudO3W9E_A · Dec 03, 2018 at 08:36 PM ·
c#2drotationpoint
Object rotates more farther it is away from a point [C#]
I was wondering how to make a sprite tilt the farther it was away from a point for about 2 days now, and I have no way to do this. I have tried
if (transform.position.x <= 5) { transform.eulerAngles = new Vector3(0, 0, -1); }
multiple times for different segments of a line, but no luck. Any help would be optimal, thanks for stopping by!
Comment