separated physics and renderer