unknown-horizons / godot-port

Unknown Horizons Godot Engine Port
https://www.unknown-horizons.org
GNU General Public License v2.0
663 stars 83 forks source link

Tweak collisions for building selection #116

Closed artism90 closed 1 year ago

artism90 commented 1 year ago

build-selection-tweak Flattened the collision shape of all buildings for the selection highlighting so that it fits better to the game's camera angle in order to fix #114. I didn't test each single building except for the buildings in the test map, but it's tweaked from WorldThing's collision shape, so it's passed down equally to all children and everything should have a better bounding box than before anyway.

Also a follow-up PR to #115 as in fixing #113. I removed a couple of unused assets in MenuTheme.tres which caused a UID regeneration each launch and, just in case, also resaved all scenes which led to a bunch of data being cleaned up. This should've been a distinct commit, but I'm not going to go the hassle to split them and possibly encounter this issue coming again, now that it looks to be gone for good now.