arcade
arcade copied to clipboard
Fix angle and rotation bugs in math utils
Fixed three bugs in math.py:
- Fixed
rand_vec_spread_degto convert degrees to radians before passing toVec2.from_polar. #2648 - Fixed
rotate_around_pointto properly rotate around thesourcepoint instead of thetarget. #2753 - Corrected argument order in
math.atan2inget_angle_radiansfunction, which previously caused incorrect angle calculations. #2754