Needle Engine

Changes between version 3.21.3 and 3.21.4
Files changed (1) hide show
  1. src/engine/engine_physics_rapier.ts +2 -2
src/engine/engine_physics_rapier.ts CHANGED
@@ -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).multiplyScalar(sc.radius);
769
- const radius = sc.radius * Math.abs(scale.x);
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)