添加相机FOV配置
This commit is contained in:
parent
e653cd15dd
commit
cc6c9d4fc8
Binary file not shown.
Binary file not shown.
@ -2,7 +2,7 @@
|
||||
"BuildId": "37670630",
|
||||
"Modules":
|
||||
{
|
||||
"ProjectFish": "UnrealEditor-ProjectFish-0001.dll",
|
||||
"ProjectFishEditor": "UnrealEditor-ProjectFishEditor-0001.dll"
|
||||
"ProjectFish": "UnrealEditor-ProjectFish.dll",
|
||||
"ProjectFishEditor": "UnrealEditor-ProjectFishEditor.dll"
|
||||
}
|
||||
}
|
@ -245,6 +245,9 @@ struct FShipDataConfig
|
||||
float BounceFactor= 1.0f;
|
||||
|
||||
/*** Camera ***/
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Camera", meta = (ForceUnits = "Degrees", ToolTip = "视野范围"))
|
||||
float CameraFiledOfView = 90.0f;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Camera|Position", meta = (ForceUnits = "cm", ToolTip = "与角色距离"))
|
||||
float CameraDistance = 1200.0f;
|
||||
|
||||
|
@ -201,6 +201,8 @@ void AShipbase::ApplyMovementSettings()
|
||||
|
||||
void AShipbase::ApplyCameraSettings()
|
||||
{
|
||||
FollowCamera->SetFieldOfView(ShipData.CameraFiledOfView);
|
||||
|
||||
CameraBoom->TargetArmLength = ShipData.CameraDistance;
|
||||
CameraBoom->SocketOffset = FVector(0, 0, ShipData.CameraHeightOffset);
|
||||
CameraBoom->MinArmLength = ShipData.CameraMinDistance;
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user