[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。
ただいまコメントを受けつけておりません。
UTクラスの子がGamePlayerCameraを利用する方法
SandboxGame.uc
SandboxPlayerController.uc
SandboxPawn.uc
simulated function name GetDefaultCameraMode( PlayerController RequestedBy )
{
if ( RequestedBy != None && RequestedBy.PlayerCamera != None && RequestedBy.PlayerCamera.CameraStyle == 'Fixed' )
return 'Fixed';
return 'Default';
}
simulated function bool CalcCamera( float fDeltaTime, out vector out_CamLoc, out rotator out_CamRot, out float out_FOV )
{
// Handle the fixed camera
if (bFixedView)
{
out_CamLoc = FixedViewLoc;
out_CamRot = FixedViewRot;
}
else
{
if ( !IsFirstPerson() ) // Handle BehindView
{
return Super(Actor).CalcCamera(fDeltaTime, out_CamLoc, out_CamRot, out_FOV);
}
else
{
// By default, we view through the Pawn's eyes..
GetActorEyesViewPoint( out_CamLoc, out_CamRot );
}
if ( UTWeapon(Weapon) != none)
{
UTWeapon(Weapon).WeaponCalcCamera(fDeltaTime, out_CamLoc, out_CamRot);
}
}
return true;
}
defaultproperties
{
}