finished ex. 13 + cleanup

This commit is contained in:
Cedric Beck
2024-10-12 15:34:45 +02:00
parent 4492843ca1
commit 9b85030050
40 changed files with 9569 additions and 437 deletions

View File

@@ -5,13 +5,14 @@
import com.jme3.asset.AssetNotFoundException;
import com.jme3.audio.AudioData;
import com.jme3.audio.AudioNode;
import com.jme3.math.Vector3f;
import pp.util.Util;
import java.lang.System.Logger;
import java.lang.System.Logger.Level;
public class JmeUtil {
private JmeUtil(){ /* Do not initialize */ }
private JmeUtil() { /* Do not initialize */ }
private static final Logger LOGGER = System.getLogger(Util.class.getName());
@@ -34,4 +35,8 @@ public static AudioNode loadSound(Application app, String name) {
}
return null;
}
public static Vector3f mapToWorldCord(float x, float y) {
return new Vector3f(y + 0.5f, 0, x + 0.5f);
}
}