Skip to content

Commit 75a28b0

Browse files
authored
BoundingSphereDebug: removed the unused variable radius and its getter method getRadius() (#2196)
BoundingSphereDebug: removed the unused variable radius and its getter method getRadius()
1 parent a2ecc32 commit 75a28b0

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

jme3-core/src/main/java/com/jme3/environment/util/BoundingSphereDebug.java

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009-2021 jMonkeyEngine
2+
* Copyright (c) 2009-2024 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -56,14 +56,6 @@ public class BoundingSphereDebug extends Mesh {
5656
protected int radialSamples = 32;
5757
protected boolean useEvenSlices;
5858
protected boolean interior;
59-
/**
60-
* the distance from the center point each point falls on
61-
*/
62-
public float radius;
63-
64-
public float getRadius() {
65-
return radius;
66-
}
6759

6860
public BoundingSphereDebug() {
6961
setGeometryData();
@@ -151,27 +143,23 @@ private void setIndexData() {
151143
if (segDone == radialSamples || segDone == radialSamples * 2) {
152144
idx++;
153145
}
154-
155146
}
156-
157147
}
158-
159148

160149
/**
161150
* Convenience factory method that creates a debug bounding-sphere geometry
151+
*
162152
* @param assetManager the assetManager
163153
* @return the bounding sphere debug geometry.
164154
*/
165155
public static Geometry createDebugSphere(AssetManager assetManager) {
166-
BoundingSphereDebug b = new BoundingSphereDebug();
167-
Geometry geom = new Geometry("BoundingDebug", b);
168-
156+
BoundingSphereDebug mesh = new BoundingSphereDebug();
157+
Geometry geom = new Geometry("BoundingDebug", mesh);
169158
Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
170159
mat.setBoolean("VertexColor", true);
171160
mat.getAdditionalRenderState().setWireframe(true);
172-
173161
geom.setMaterial(mat);
174162
return geom;
175-
176163
}
164+
177165
}

0 commit comments

Comments
 (0)