Files
Pal3.Unity/Assets/Scripts/Pal3/Command/SceCommands/CameraSetTransformCommand.cs
T

36 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2021-2023, Jiaqi Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
namespace Pal3.Command.SceCommands
{
[AvailableInConsole]
[SceCommand(36, "设置镜头参数," +
"参数:Yaw,Pitch,Distance(原GameBox引擎下的距离单位),原GameBox引擎下的一个三维坐标(X,Y,Z)")]
public class CameraSetTransformCommand : ICommand
{
public CameraSetTransformCommand(
float yaw,
float pitch,
float gameBoxDistance,
float gameBoxXPosition,
float gameBoxYPosition,
float gameBoxZPosition)
{
Yaw = yaw;
Pitch = pitch;
GameBoxDistance = gameBoxDistance;
GameBoxXPosition = gameBoxXPosition;
GameBoxYPosition = gameBoxYPosition;
GameBoxZPosition = gameBoxZPosition;
}
public float Yaw { get; }
public float Pitch { get; }
public float GameBoxDistance { get; }
public float GameBoxXPosition { get; }
public float GameBoxYPosition { get; }
public float GameBoxZPosition { get; }
}
}