Divided the physics logic and graphics logic.