We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
검정네모
갈색물결
p
g
u1
u2
pg
m1
m2
s1
s2
The text was updated successfully, but these errors were encountered:
곡선 지형과의 충돌처리: http://codeonwort.tistory.com/179
Sorry, something went wrong.
No branches or pull requests
검정네모
: 플레이어 이미지갈색물결
: 지형p
: 플레이어 위치g
: 중력에 영향을 받아 다음 순간에 플레이어가 도달해야할 위치u1
,u2
: 중력에 의해서 플레이어가g
를 향해 떨어질 때, 지형과 충돌하는 위치를 감지하기 위한 임시위치p
를 사용하지 않는가:p
와 지형이 맞닿아 있을 경우 선분pg
와 지형간에 교점이 구해지지 않을 수 있는 문제를 피하기 위함pg
가 지나갈 경우 교점이 구해지지 않을 수 있는 문제를 피하기 위함m1
,m2
: 플레이어가 좌, 우 방향키를 눌렀을 때 다음 순간에 플레이어가 도달해야할 위치s1
,s2
: 플레이어가 좌 우로 이동할 때, 지형과 충돌하는 위치를 감지하기 위한 임시 위치p
보다 위에 있는가: 땅과 벽을 구분하여 처리하지 않으므로,p
와 같은 높이에서 충돌검사를 할 경우 플레이어가 땅에 맞닿아 있을 때 엉뚱한 교점이 구해질 수 있는 문제를 피하기 위함The text was updated successfully, but these errors were encountered: