Coding the physics engine (without collision)