re-arranging physics; added raycast test.