Functions
14GetPanSpeed
() → float
| Field | XML type | Value |
|---|
Name | string | GetPanSpeed |
GetRenderCFrame
() → CoordinateFrame
| Field | XML type | Value |
|---|
Name | string | GetRenderCFrame |
GetRoll
() → float
| Field | XML type | Value |
|---|
Name | string | GetRoll |
summary | string | Returns the camera's current roll. Roll is defined in radians, and is stored as the delta from the camera's y axis default normal vector. |
GetTiltSpeed
() → float
| Field | XML type | Value |
|---|
Name | string | GetTiltSpeed |
Interpolate
(endPos: CoordinateFrame, endFocus: CoordinateFrame, duration: float) → void
| Field | XML type | Value |
|---|
Name | string | Interpolate |
PanUnits
(units: int) → void
| Field | XML type | Value |
|---|
Name | string | PanUnits |
ScreenPointToRay
(x: float, y: float, depth: float = …) → Ray
| Field | XML type | Value |
|---|
Name | string | ScreenPointToRay |
summary | string | Takes a 2D screen position and produces a Ray object to be used for 3D raycasting. Input is x,y screen coordinates, and a (optional, defaults to 0) z position which sets how far in the camera look vector to start the ray origin. |
SetCameraPanMode
(mode: CameraPanMode = …) → void
| Field | XML type | Value |
|---|
Name | string | SetCameraPanMode |
SetRoll
(rollAngle: float) → void
| Field | XML type | Value |
|---|
Name | string | SetRoll |
summary | string | Sets the camera's current roll. Roll is defined in radians, and is stored as the delta from the camera's y axis default normal vector. |
TiltUnits
(units: int) → bool
| Field | XML type | Value |
|---|
Name | string | TiltUnits |
ViewportPointToRay
(x: float, y: float, depth: float = …) → Ray
| Field | XML type | Value |
|---|
Name | string | ViewportPointToRay |
summary | string | Same as ScreenPointToRay, except no GUI offsets are taken into account. Useful for things like casting a ray from the middle of the Camera.ViewportSize |
WorldToScreenPoint
(worldPoint: Vector3) → Tuple
| Field | XML type | Value |
|---|
Name | string | WorldToScreenPoint |
summary | string | Takes a 3D position in the world and projects it onto x,y coordinates of screen space. Returns two values, first is a Vector3 that has x,y position and z position which is distance from camera (negative if behind camera, positive if in front). Second return value is a boolean indicating if the first argument is an on-screen coordinate. |
WorldToViewportPoint
(worldPoint: Vector3) → Tuple
| Field | XML type | Value |
|---|
Name | string | WorldToViewportPoint |
summary | string | Same as WorldToScreenPoint, except no GUI offsets are taken into account. |
Zoom
(distance: float) → bool
| Field | XML type | Value |
|---|
Name | string | Zoom |