Physics fixes, added random math.