Neuer Baum Generator für Trauerweiden
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user