主题
GameCore.CameraSystem
CameraPositionMode 双端
命名空间 GameCore.CameraSystem.Enum
csharp
public enum CameraPositionModeSpecifies the mode used to position the camera in a 3D scene.
备注
This enumeration defines the two primary modes for camera positioning: FocalPoint Positions the camera based on a focal point in the scene, typically used for targeting a specific object or area. CameraLocation Positions the camera based on the camera's location, often used for first-person or free-camera perspectives. Use this enumeration to configure how the camera interacts with the scene, depending on the desired perspective or interaction model.
枚举值
FocalPoint— Positions the camera based on a focal point in the scene, typically used for targeting a specific object or area.CameraLocation— Positions the camera based on the camera's location, often used for first-person or free-camera perspectives.
CameraRotationOrder 双端
命名空间 GameCore.CameraSystem.Enum
csharp
public enum CameraRotationOrder枚举值
YawPitchRollRollPitchYaw
CameraTargetingMode 双端
命名空间 GameCore.CameraSystem.Enum
csharp
public enum CameraTargetingModeSpecifies the mode used to determine how the camera targets or interacts with entities or the scene.
备注
This enumeration defines the primary modes for camera targeting: FollowTarget The camera follows a target entity, maintaining a specified distance and angle. This is commonly used for third-person or chase camera perspectives. StaticPosition The camera remains in a fixed position and does not follow any target entity. This is useful for cutscenes or overview perspectives. GestureDriven The camera is controlled by user gestures, allowing for free interaction. This is often used in touch-based or VR environments.
枚举值
Follow— The camera follows a target entity, maintaining a specified distance and angle from it.Static— The camera is in a fixed position and does not follow any target entity.Gesture— Represents a gesture-driven mode for the camera, allowing for user interaction through gestures.
CameraRotation 双端
命名空间 GameCore.CameraSystem.Struct
csharp
public struct CameraRotation构造函数
CameraRotation 双端
csharp
public CameraRotation(Angle yaw, Angle pitch, Angle roll)属性
Yaw 双端
csharp
public Angle Yaw { get; set; }Pitch 双端
csharp
public Angle Pitch { get; set; }Roll 双端
csharp
public Angle Roll { get; set; }方法
ToVector3 双端
csharp
public readonly Vector3 ToVector3()