• [Unreal 게시판] camera의 상하 각도에 75도 정도를 기울여 주려면2013.08.18 PM 06:09

게시물 주소 FONT글자 작게하기 글자 키우기

Question>

아래 source code에서
camera의 상하 각도에 75도 정도를 기울여 주려면?

function UpdateViewTarget( out TViewTarget OutVT, float DeltaTime )
{
//..중략..

OutVT.POV.Location = OutVT.Target.Location + CameraProperties.CameraOffset;
OutVT.POV.Rotation = Rotator(OutVT.Target.Location - OutVT.POV.Location);
}

-------------------------------------------------------------

Answer>

75도(75 degree)를 unreal angle로 변환하는 방법은 DegToUnrRot를 곱하는 겁니다.

OutVT.POV.rotation.pitch += 75.0f * DegToUnrRot;

위 부분을 UpdateViewTarget()의 제일 뒤에 넣으세요~ ^^







Tag:
안기훈, Kee Hoon Ahn, 언리얼, Unreal, UDK, iPhone, iPad, app, 앱, iOS
댓글 : 0 개
친구글 비밀글 댓글 쓰기