Unneeded switch statement, just use an if here
Use simpler names for magic position properties
Add convenient configuration tool for in game objects