arcade icon indicating copy to clipboard operation
arcade copied to clipboard

Fix angle and rotation bugs in math utils

Open Raahi-18 opened this issue 5 months ago • 0 comments

Fixed three bugs in math.py:

  1. Fixed rand_vec_spread_deg to convert degrees to radians before passing to Vec2.from_polar. #2648
  2. Fixed rotate_around_point to properly rotate around the source point instead of the target. #2753
  3. Corrected argument order in math.atan2 in get_angle_radians function, which previously caused incorrect angle calculations. #2754

Raahi-18 avatar Jul 18 '25 02:07 Raahi-18