I have a missile in space with left/right thrusters. I also have angle to target on horizontal axis, so when angle is -120 I know missile should turn right, so I turn on manevrouring engine to turn right - but problem comes when missile is upside down - right thruster work then in opposite direction. How can I determine if my gameobject is upside down in space?
if (transform.up.y < 0f) {
//you're upside down
}
3 Likes
It is obvious answer, Ill check it from every angle, I thought there will be needed something with relative to target info, I
ll investigate it closly, thank You.