Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///@func rotation_dir(rot_dir_current, angle_old, angle_new)
- ///@desc Returns 1 if an instance is rotation clockwise, -1 if it's rotating counter-clockwise
- ///
- ///@param rot_dir_current
- ///@param angle_old
- ///@param angle_new
- return (argument2 == argument1) ? argument0 : (((argument2 - argument1 + 360) % 360 - 180 > 0) ? -1 : 1);
Advertisement
Add Comment
Please, Sign In to add comment