mbrlabs / Mundus

A 3D world/level editor built with Java, Kotlin & libGDX.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve: Models should respect the slope of the terrain when they are being placed.

krukhlis opened this issue · comments

Currently, when one puts the model to some point on terrain, the model has its normal always facing Y-UP(0,1,0). IMHO, model should respect the slope of the terrain when user places it. It means it should ac-ly respect the normal at the point of terrain. Please see the image with example how it looks like after the corresponding code change:
mundus-improvement-malign

At least, we should give an option to the user if he wants his model to respect the slope of the terrain.
This is improvement, not a bug :)

That's a good idea. But i agree, that the user should be able to choose between those placemnet modes.
The placement tool doesn't have any settings yet, but one could implement that in the global settings dialog.

Can you do a pull request with your changes? I could then add an option to the settings to switch betwwen the modes.