|
@@ -125,7 +125,7 @@ public class HelloPicking extends SimpleApplication {
|
|
|
};
|
|
|
|
|
|
/** A cube object for target practice */
|
|
|
- protected Geometry makeCube(String name, float x, float y, float z) {
|
|
|
+ private Geometry makeCube(String name, float x, float y, float z) {
|
|
|
Box box = new Box(1, 1, 1);
|
|
|
Geometry cube = new Geometry(name, box);
|
|
|
cube.setLocalTranslation(x, y, z);
|
|
@@ -136,7 +136,7 @@ public class HelloPicking extends SimpleApplication {
|
|
|
}
|
|
|
|
|
|
/** A floor to show that the "shot" can go through several objects. */
|
|
|
- protected Geometry makeFloor() {
|
|
|
+ private Geometry makeFloor() {
|
|
|
Box box = new Box(15, .2f, 15);
|
|
|
Geometry floor = new Geometry("the Floor", box);
|
|
|
floor.setLocalTranslation(0, -4, -5);
|
|
@@ -147,7 +147,7 @@ public class HelloPicking extends SimpleApplication {
|
|
|
}
|
|
|
|
|
|
/** A red ball that marks the last spot that was "hit" by the "shot". */
|
|
|
- protected void initMark() {
|
|
|
+ private void initMark() {
|
|
|
Sphere sphere = new Sphere(30, 30, 0.2f);
|
|
|
mark = new Geometry("BOOM!", sphere);
|
|
|
Material mark_mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
|
|
@@ -156,7 +156,7 @@ public class HelloPicking extends SimpleApplication {
|
|
|
}
|
|
|
|
|
|
/** A centred plus sign to help the player aim. */
|
|
|
- protected void initCrossHairs() {
|
|
|
+ private void initCrossHairs() {
|
|
|
setDisplayStatView(false);
|
|
|
guiFont = assetManager.loadFont("Interface/Fonts/Default.fnt");
|
|
|
BitmapText ch = new BitmapText(guiFont, false);
|
|
@@ -167,7 +167,7 @@ public class HelloPicking extends SimpleApplication {
|
|
|
guiNode.attachChild(ch);
|
|
|
}
|
|
|
|
|
|
- protected Spatial makeCharacter() {
|
|
|
+ private Spatial makeCharacter() {
|
|
|
// load a character from jme3test-test-data
|
|
|
Spatial golem = assetManager.loadModel("Models/Oto/Oto.mesh.xml");
|
|
|
golem.scale(0.5f);
|