블로그 이미지
Every unexpected event is a path to learning for you.

카테고리

분류 전체보기 (2731)
Unity3D (814)
Programming (474)
Server (33)
Unreal (4)
Gamebryo (56)
Tip & Tech (228)
협업 (57)
3DS Max (3)
Game (12)
Utility (136)
Etc (96)
Link (32)
Portfolio (19)
Subject (90)
iOS,OSX (51)
Android (14)
Linux (5)
잉여 프로젝트 (2)
게임이야기 (3)
Memories (20)
Interest (38)
Thinking (38)
한글 (30)
PaperCraft (5)
Animation (408)
Wallpaper (2)
재테크 (18)
Exercise (3)
나만의 맛집 (3)
냥이 (10)
육아 (16)
Total
Today
Yesterday
03-30 00:00
저 같은 경우 예전에 이벤트 발생 했을 때 특정 노드만 애니메이션 해야 하는 기능이 있었는데요 도움이 될지 모르겠네요.
NiTimeController* pkControl = spStrongBoxDoor->GetControllers();
pkControl->SetAnimType(NiTimeController::APP_INIT);
float fAccTime = TimeMgr::GetInst()->GetAccumTime();
NiTimeController::StartAnimations(spStrongBoxDoor, fAccTime);
spStrongBoxDoor->Update(fAccTime);
NiTimeController::StopAnimations(spStrongBoxDoor);

애니메이션 시킬 노드를 초기화 하고 전체 애니 시간을 설정해 준 후 업데이트 한 다음에 멈춰 버립니다.
그 다음에 이벤트 발생 했을때 NiTimeController::StartAnimations(spStrongBoxDoor);
이렇게 호출 해서 사용 했습니다. 위와 같이 사용 하면 딱 한 루푸만 작동하고 멈췄습니다.


출처 : http://cafe.naver.com/dxgameprogramming/1661 의 리플 중 [딸기하나]님 리플..
반응형
Posted by blueasa
, |