Neuer Baum Generator für Trauerweiden

This commit is contained in:
2026-08-23 10:48:25 +02:00
parent fdd8eb60be
commit d65ebbfeb6
14 changed files with 1329 additions and 9 deletions

View File

@@ -330,7 +330,7 @@ public class WorldObjectsState extends BaseAppState {
lodRoot.updateGeometricState();
if (treeNode.getWorldBound() instanceof com.jme3.bounding.BoundingBox treeBb) {
float groundY = treeBb.getCenter().y - treeBb.getYExtent();
if (Math.abs(groundY) > 0.01f) {
if (groundY > 0.01f) {
treeNode.setLocalTranslation(0f, -groundY, 0f);
lod2.setLocalTranslation(0f, -groundY, 0f);
}