Skip to content

Commit

Permalink
Merge branch 'jMonkeyEngine:master' into capdevon-clip-action
Browse files Browse the repository at this point in the history
  • Loading branch information
capdevon authored Feb 19, 2024
2 parents 7475c7f + b29c2f8 commit d726055
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ The engine is used by several commercial game studios and computer-science cours
- [Boxer (on Google Play)](https://play.google.com/store/apps/details?id=com.tharg.boxer)
- [Depthris (on Itch)](https://codewalker.itch.io/depthris)
- [Stranded (on Itch)](https://tgiant.itch.io/stranded)
- [The Afflicted Forests (Coming Soon to Steam)](https://www.indiedb.com/games/the-afflicted-forests)

## Getting Started

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2021 jMonkeyEngine
* Copyright (c) 2009-2024 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -56,14 +56,6 @@ public class BoundingSphereDebug extends Mesh {
protected int radialSamples = 32;
protected boolean useEvenSlices;
protected boolean interior;
/**
* the distance from the center point each point falls on
*/
public float radius;

public float getRadius() {
return radius;
}

public BoundingSphereDebug() {
setGeometryData();
Expand Down Expand Up @@ -151,27 +143,23 @@ private void setIndexData() {
if (segDone == radialSamples || segDone == radialSamples * 2) {
idx++;
}

}

}


/**
* Convenience factory method that creates a debug bounding-sphere geometry
*
* @param assetManager the assetManager
* @return the bounding sphere debug geometry.
*/
public static Geometry createDebugSphere(AssetManager assetManager) {
BoundingSphereDebug b = new BoundingSphereDebug();
Geometry geom = new Geometry("BoundingDebug", b);

BoundingSphereDebug mesh = new BoundingSphereDebug();
Geometry geom = new Geometry("BoundingDebug", mesh);
Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
mat.setBoolean("VertexColor", true);
mat.getAdditionalRenderState().setWireframe(true);

geom.setMaterial(mat);
return geom;

}

}

0 comments on commit d726055

Please sign in to comment.