-
Notifications
You must be signed in to change notification settings - Fork 5
Component Camera
Berke edited this page Jun 23, 2026
·
1 revision
The Camera component controls view orientation, projection settings, and camera direction.
camera.isValidReturns whether the camera component is valid.
booleancamera.isActiveEnables or disables this camera.
booleancamera.isActive = truecamera.yawHorizontal rotation of the camera.
numbercamera.yaw = camera.yaw + 1.0camera.pitchVertical rotation of the camera.
numbercamera.pitch = math.clamp(camera.pitch, -89, 89)camera.fovField of view in degrees.
numbercamera.aspectRatioScreen aspect ratio.
numbercamera.nearPlaneNear clipping plane distance.
numbercamera.farPlaneFar clipping plane distance.
numbercamera.forwardForward direction vector of the camera.
Vector3camera.targetThe target point the camera is looking at.
Vector3local cam = entity.camera
cam.yaw = cam.yaw + Input.GetMousePosition().x * 0.1
cam.pitch = math.clamp(cam.pitch, -80, 80)
cam.fov = 75