|
|
Sets the world-space position of the camera.
-
pos
:
Vector3
-
c
:
Camera
-
Returns:
Camera
|
|
|
Calculates the BoundingFrustum for the camera.
-
camera
:
Camera
-
Returns:
BoundingFrustum
|
|
|
Identity camera (for testing).
-
Returns:
Camera
|
|
|
Positions the camera to look at a target from a specific position.
-
position
:
Vector3
-
target
:
Vector3
-
c
:
Camera
-
Returns:
Camera
|
|
|
Sets the target point the camera is looking at.
-
target
:
Vector3
-
c
:
Camera
-
Returns:
Camera
|
|
|
Full orbit configuration around a target.
-
target
:
Vector3
-
yaw
:
float32
-
pitch
:
float32
-
distance
:
float32
-
c
:
Camera
-
Returns:
Camera
|
|
|
Create an orthographic camera. (Backward compatibility)
-
position
:
Vector3
-
target
:
Vector3
-
up
:
Vector3
-
width
:
float32
-
height
:
float32
-
near
:
float32
-
far
:
float32
-
Returns:
Camera
|
|
|
Create a perspective camera. (Backward compatibility)
-
position
:
Vector3
-
target
:
Vector3
-
up
:
Vector3
-
fov
:
float32
-
aspect
:
float32
-
near
:
float32
-
far
:
float32
-
Returns:
Camera
|
|
|
Standard perspective camera with sensible defaults.
-
Returns:
Camera
|
|
|
Recomputes the projection matrix based on Fov, Aspect, Near, and Far.
-
c
:
Camera
-
Returns:
Matrix
|
|
|
Recomputes the view matrix based on Position, Target, and Up.
-
c
:
Camera
-
Returns:
Matrix
|
|
|
Creates a ray from screen coordinates for mouse/touch picking.
-
camera
:
Camera
-
screenPos
:
Vector2
-
viewport
:
Viewport
-
Returns:
Ray
|
|
|
Orbits the camera around its current target using spherical angles.
-
yaw
:
float32
-
Horizontal rotation in radians.
-
pitch
:
float32
-
Vertical rotation in radians.
-
c
:
Camera
-
Returns:
Camera
|
|
|
Sets the aspect ratio (Width / Height).
-
aspect
:
float32
-
c
:
Camera
-
Returns:
Camera
|
|
|
Offsets the camera position along its current forward axis by a distance from the target.
Useful for zooming or maintaining distance in an orbit.
-
distance
:
Vector3
-
c
:
Camera
-
Returns:
Camera
|
|
|
Sets the Field of View in radians.
-
fov
:
float32
-
c
:
Camera
-
Returns:
Camera
|
|
|
Sets the near and far clipping planes.
-
near
:
float32
-
far
:
float32
-
c
:
Camera
-
Returns:
Camera
|
|
|
Sets the world-space "up" vector (typically Vector3.Up).
-
up
:
Vector3
-
c
:
Camera
-
Returns:
Camera
|