here's an interesting problem...the angle restrictions are working fine () as long as the mouse is within the game window. If the mouse cursor leaves the game window through either the top or the bottom the object spins around freely, but not if the cursor leaves the game window through either the left or right side of the screen...weird.
Anyone know what's going on?
Thank you for looking.my related postHow to Restrict Movement of Object?
Develop games in your browser. Powerful, performant & highly capable.