moved position and physics to double
merge on input.cpp