Question -- Angle
jimmyraynor
Member Posts: 22
Hi all,
In my game, I have a cannon that rotates by mouse click. The behavior is..
Rotate to Position
Position max( game.Mouse.Position.X , self.Position.X) max (game.mouse.position.Y , self.position.Y)
It's relative to scene, offset angle is 0, and speed is 150.
The cannon will only rotate from 0 to 90 degrees.. how can I change it so it'll rotate between -45 degrees and +45 degrees? Or from -90 degrees to +90 degrees?
Thanks!
In my game, I have a cannon that rotates by mouse click. The behavior is..
Rotate to Position
Position max( game.Mouse.Position.X , self.Position.X) max (game.mouse.position.Y , self.position.Y)
It's relative to scene, offset angle is 0, and speed is 150.
The cannon will only rotate from 0 to 90 degrees.. how can I change it so it'll rotate between -45 degrees and +45 degrees? Or from -90 degrees to +90 degrees?
Thanks!