Added a maxrotation functionality to the physicobject