I am having a problem with an object in my game. I have the objects angle set to Mouse.X, Mouse.Y but I want to restrict the amount it can turn.
Being set to the mouse means if I move the mouse around the object , the object will turn a full 360 degrees - I don't want that though. I want the object to be restricted to only moving between 320 and 40 degrees (think a pizza with a slice missing. That missing slice is the angle I'm looking for) How is this done?
Thank you for looking.