@@ -765,8 +765,8 @@
|
|
765
765
|
const ball = shape as Ball;
|
766
766
|
const sc = col as ISphereCollider;
|
767
767
|
const obj = col.gameObject;
|
768
|
-
const scale = getWorldScale(obj, this._tempPosition)
|
769
|
-
const radius = sc.radius *
|
768
|
+
const scale = getWorldScale(obj, this._tempPosition);
|
769
|
+
const radius = Math.abs(sc.radius * scale.x);
|
770
770
|
const changed = ball.radius !== radius;
|
771
771
|
ball.radius = radius;
|
772
772
|
if (changed)
|