even more correct maths, added gravity fields and gravity controller