From 29fddf2403c593b4270a510770afdc159a7294fe Mon Sep 17 00:00:00 2001 From: samme Date: Fri, 4 Apr 2025 07:51:20 -0700 Subject: [PATCH] Fix GetCounterClockwiseDistance() for Phaser 3 Needs correct TAU = 1 turn --- src/math/angle/GetCounterClockwiseDistance.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/math/angle/GetCounterClockwiseDistance.js b/src/math/angle/GetCounterClockwiseDistance.js index 562917cfbc..0cecf119c0 100644 --- a/src/math/angle/GetCounterClockwiseDistance.js +++ b/src/math/angle/GetCounterClockwiseDistance.js @@ -4,10 +4,9 @@ * @license {@link https://opensource.org/licenses/MIT|MIT License} */ -var MATH_CONST = require('../const'); var NormalizeAngle = require('./Normalize'); -var TAU = MATH_CONST.TAU; +var TAU = 2 * Math.PI; /** * Gets the shortest nonpositive angular distance from angle1 to angle2.