플레이어가 이동할 수 있게 되었으므로, 터레인 위에서 자연스럽게 움직일 수 있도록 플레이어와 터레인 간 콜리전을 구현해볼 것이다. 사실 Player 클래스에는 이미 관련 코드가 짜여져 있다.bool Player::Move(float deltaTime, Terrain* terrain){ // 회전 GLfloat* currRot = model->GetRotate(); float rotation = currTurnSpeed * deltaTime; float newRotY = currRot[1] + rotation; // new rotY if(newRotY > 180) newRotY -= 360.f; if (newRotY SetRotate(newRot); // 이동 GLfloat* currPos = model..