Skip to content

Commit 45109fc

Browse files
committed
CylinderCollisionShape: possibly more accurate
1 parent c639e5d commit 45109fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/jme3/bullet/collision/shapes/CylinderCollisionShape.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public float maxRadius() {
267267
default:
268268
throw new IllegalStateException("axis = " + axis);
269269
}
270-
float result = (float) Math.hypot(halfHeight, bigRadius);
270+
float result = (float) MyMath.hypotenuseDouble(halfHeight, bigRadius);
271271

272272
return result;
273273
}

0 commit comments

Comments
 (0)