| @@ -617,12 +617,16 @@ function updateSizes(dirtyOnly = false) { | |||||
| updateRatios(); | updateRatios(); | ||||
| if (config.lockYAxis) { | if (config.lockYAxis) { | ||||
| if (config.groundPos === "high") { | |||||
| config.y = -config.height.toNumber("meters") / 2; | |||||
| if (config.groundPos === "very-high") { | |||||
| config.y = -config.height.toNumber("meters") / 12 * 5; | |||||
| } else if (config.groundPos === "high") { | |||||
| config.y = -config.height.toNumber("meters") / 12 * 4; | |||||
| } else if (config.groundPos === "medium") { | } else if (config.groundPos === "medium") { | ||||
| config.y = -config.height.toNumber("meters") / 4; | |||||
| config.y = -config.height.toNumber("meters") / 12 * 3; | |||||
| } else if (config.groundPos === "low") { | } else if (config.groundPos === "low") { | ||||
| config.y = -config.height.toNumber("meters") / 6; | |||||
| config.y = -config.height.toNumber("meters") / 12 * 2; | |||||
| } else if (config.groundPos === "very-low") { | |||||
| config.y = -config.height.toNumber("meters") / 12; | |||||
| } else { | } else { | ||||
| config.y = 0; | config.y = 0; | ||||
| } | } | ||||
| @@ -2405,9 +2409,11 @@ const settingsData = { | |||||
| type: "select", | type: "select", | ||||
| default: "bottom", | default: "bottom", | ||||
| options: [ | options: [ | ||||
| "very-high", | |||||
| "high", | "high", | ||||
| "medium", | "medium", | ||||
| "low", | "low", | ||||
| "very-low", | |||||
| "bottom", | "bottom", | ||||
| ], | ], | ||||
| get value() { | get value() { | ||||
| @@ -3922,14 +3928,20 @@ function prepareEntities() { | |||||
| let yOffset = 0; | let yOffset = 0; | ||||
| if (config.lockYAxis) { | if (config.lockYAxis) { | ||||
| if (config.groundPos === "high") { | |||||
| yOffset = config.height.toNumber("meters")/2; | |||||
| if (config.groundPos === "very-high") { | |||||
| yOffset = config.height.toNumber("meters") / 12 * 5; | |||||
| } | |||||
| else if (config.groundPos === "high") { | |||||
| yOffset = config.height.toNumber("meters") / 12 * 4; | |||||
| } | } | ||||
| else if (config.groundPos === "medium") { | else if (config.groundPos === "medium") { | ||||
| yOffset = config.height.toNumber("meters")/4; | |||||
| yOffset = config.height.toNumber("meters") / 12 * 3; | |||||
| } | } | ||||
| else if (config.groundPos === "low") { | else if (config.groundPos === "low") { | ||||
| yOffset = config.height.toNumber("meters")/6; | |||||
| yOffset = config.height.toNumber("meters") / 12 * 2; | |||||
| } | |||||
| else if (config.groundPos === "very-low") { | |||||
| yOffset = config.height.toNumber("meters") / 12 * 1; | |||||
| } | } | ||||
| else if (config.groundPos === "bottom") { | else if (config.groundPos === "bottom") { | ||||
| yOffset = 0; | yOffset = 0; | ||||