게임엔진/윈도우API

윈도우API)12. 모작

PJNull 2022. 12. 23. 16:55
728x90
반응형

 

 

가속도 구현

 

float deltaTime = GET_SINGLE(TimeManager)->GetDeltaTime();

	
	float wind = GET_SINGLE(UIManager)->GetWindPercent();//바람 가속도
	Vector gravity = { 0,1000 };						//중력 가속도

	_speed += gravity*deltaTime;
	_speed.x += wind*deltaTime*3;

	_pos += _speed*deltaTime;

 

 

 

 

충돌 처리

 

728x90
반응형