# Camera(ロブロックス クラス) > プレイヤーが見ている視点(カメラ)を表すクラスです。LocalScriptから workspace.CurrentCamera で使います。 - URL:https://roblox.minecraft-okinawa.com/reference/classes/Camera/ - 公式:https://create.roblox.com/docs/reference/engine/classes/Camera - 受け継いでいるクラス:PVInstance ## プロパティ - `Camera.CameraSubject: Instance`:The Humanoid or BasePart that is the Camera subject. - `Camera.CameraType: CameraType`:カメラの動き方の種類。Scriptableにすると、スクリプトで自由に動かせます。 - `Camera.CFrame: CFrame`:カメラの位置と向き。 - `Camera.DiagonalFieldOfView: float`:Sets the angle of the camera's diagonal field of view. - `Camera.FieldOfView: float`:視野の広さ(度)。 - `Camera.FieldOfViewMode: FieldOfViewMode`:Determines the FOV value of the Camera that's invariant under viewport size changes. - `Camera.Focus: CFrame`:Sets the area in 3D space that is prioritized by Roblox's graphical systems. - `Camera.HeadLocked: boolean`:Toggles whether the camera will automatically track the head motion of a player using a VR device. - `Camera.HeadScale: float`:Sets the scale of the user's perspective of the world when using VR. - `Camera.MaxAxisFieldOfView: float`:Sets the angle of the camera's field of view along the longest viewport axis. - `Camera.NearPlaneZ: float`:Describes the negative **Z** offset, in studs, of the camera's near clipping plane. - `Camera.OrthographicMode: OrthographicMode`:Sets which screen axis Class.Camera.OrthographicSize|OrthographicSize is applied to. - `Camera.OrthographicSize: float`:Sets the extent in studs of the dimension chosen by Class.Camera.OrthographicMode|OrthographicMode. - `Camera.ProjectionType: ProjectionType`:Chooses between perspective and orthographic cameras. - `Camera.ViewportSize: Vector2`:The dimensions of the device safe area on a Roblox client. - `Camera.ViewStretch: float`:Stretches the axis of the view not pinned by the current Class.Camera.FieldOfViewMode|FieldOfViewMode or Class.Camera.OrthographicMode|OrthographicMode. - `Camera.VRTiltAndRollEnabled: boolean`:Toggles whether to apply tilt and roll from the Class.Camera.CFrame|CFrame property while the player is using a VR device. ## メソッド - `Camera:GetPartsObscuringTarget(castPoints: Array, ignoreList: Instances): Instances`:Returns an array of Class.BasePart|BaseParts that are obscuring the lines of sight between the camera's Class.Camera.CFrame|CFrame and the cast points. - `Camera:GetRenderCFrame(): CFrame`:Returns the actual CFramewhere the Camera is being rendered, accounting for any roll applied and the impact of VR devices. - `Camera:ScreenPointToRay(x: float, y: float, depth: float): Ray`:Creates a unit Ray from a position on the screen (in pixels), at a set depth from the Camera orientated in the camera's direction. Accounts for the GUI inset. - `Camera:ViewportPointToRay(x: float, y: float, depth: float): Ray`:Creates a unit Ray from a position on the viewport (in pixels), at a given depth from the Camera, orientated in the camera's direction. Does not account for the Enum.ScreenInsets|CoreUISafeInsets inset. - `Camera:WorldToScreenPoint(worldPoint: Vector3): Tuple`:Returns the screen location and depth of a Vector3 worldPoint and whether this point is within the bounds of the screen. Accounts for the GUI inset. - `Camera:WorldToViewportPoint(worldPoint: Vector3): Tuple`:Returns the screen location and depth of a Vector3 worldPoint and whether this point is within the bounds of the screen. Does not account for the GUI inset. - `Camera:ZoomToExtents(boundingBoxCFrame: CFrame, boundingBoxSize: Vector3): ()`:Adjusts the Class.Camera.CFrame|CFrame so that the specified bounding box is fully visible within the camera's viewport. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)