adding physics calculations for simulation purposes