alwaysShouldered? |
boolean |
false |
Whether shoulderOffset and pivotRise hold with the lock off too, so the character stands off the middle of the screen at all times, as Cinemachine’s third-person follow and God of War’s camera frame theirs. Our shoulderOffset is Roblox’s shift lock offset, which only the lock applies, so the always-on framing is this flag rather than a second offset. Up close the offset draws in, so the character stays on the screen. ponytail: one offset for both states; a pair of values for the free camera would lift it, for a game that frames free and aiming differently. |
bodyNearEye? |
BodyNearEye |
BodyNearEye.Fade |
What the camera does with the character’s body when the eye comes within 0.35 m of it: fade it through a dither and keep its shadow, hide it, or leave it drawn. |
clickToWalk? |
boolean |
undefined |
Whether a click on the ground walks the character there. |
distance? |
number |
undefined |
Metres from the character the eye starts at, within the zoom’s stops; the wheel moves it from there. Left out, the eye starts where the last scene’s camera stood, within the stops, or the preset’s start. |
eyeHeightFraction? |
number |
0.78 |
How far up the character’s height the aim sits when the eye is at the near stop, as a fraction of the character’s measured height, so one value frames every avatar alike; far out, the aim slides to the character’s middle. |
fieldOfView? |
number |
80, and 102 in the shooter preset |
Degrees the camera sees across a 16:9 screen, until the player sets their own Field of view. A wider screen keeps that height and sees more at the sides; a screen held upright sees the figure top to bottom at 9:16. |
firstPerson? |
boolean |
undefined |
Whether a wheel notch in at the near stop puts the eye in the character’s head. |
firstPersonMaxPolarAngle? |
number |
MathUtils.degToRad(179), 89 degrees up |
maxPolarAngle in first person, where the eye looks further up. Short of 180: at the pole the eye’s sideways direction is undefined and a turn spins the view. |
firstPersonMinPolarAngle? |
number |
MathUtils.degToRad(1), 89 degrees down |
minPolarAngle in first person, where the eye looks further down with no body below it to frame. |
fixedFieldOfView? |
boolean |
undefined |
Whether the camera keeps fieldOfView whatever the player sets, for a design that needs one lens. Leave it off where you can: a view that suits the player’s screen and how far they sit from it eases motion sickness, which is why the accessibility guidelines ask for the setting. |
follow? |
ViewTarget | null |
CameraTarget.ViewTarget |
What the camera keeps in frame: the player unless told otherwise; null is a free orbit the player drags, for a menu. |
freeCursorKey? |
string |
undefined |
The key, as a KeyboardEvent.code such as "AltLeft", that frees the cursor while the player holds it, so the player can click the HUD without leaving play, as an MMO’s cursor key does; letting it go takes the lock back. A hold rather than a toggle: letting go can never leave the player stuck with a free cursor in a shooter. A game that wants a toggle calls useFreeCursor from its own key. Windowed Firefox grants no lock without a click, so there the menu’s Play takes it back. No key unless set, and no preset sets one. |
lockToggle? |
boolean |
undefined |
Whether Shift turns the lock on and off. |
lookSpeed? |
number |
(2 * Math.PI) / 1600 |
Radians a pixel of mouse travel turns the camera while the cursor is captured, before the player’s mouse sensitivity multiplies it. |
maxDistance? |
number |
9 |
The farthest the wheel takes the eye, in metres. |
maxFieldOfView? |
number |
120 |
The widest the player’s Field of view goes in this game. |
maxPolarAngle? |
number |
MathUtils.degToRad(170), 80 degrees up |
The lowest the eye drops below the character, in radians from straight up: 90 degrees plus how far up the player may look. A smaller value is a tighter stop, such as MathUtils.degToRad(90 + 60) for 60 up. |
minDistance? |
number |
0.7 |
The nearest the wheel brings the eye in third person, in metres. |
minFieldOfView? |
number |
60 |
The narrowest the player’s Field of view goes in this game. |
minPolarAngle? |
number |
MathUtils.degToRad(10), 80 degrees down |
The highest the eye rises above the character, in radians from straight up: 90 degrees less how far down the player may look. A larger value is a tighter stop. |
pitch? |
number |
undefined |
Degrees the eye starts looking down, negative up, within the tilt’s stops. Left out, the eye keeps the tilt the last scene’s camera left, or the preset’s start. |
pivotRise? |
number |
0 |
Metres above the character’s eyes the aim rises while the lock is on, or at all times with alwaysShouldered. |
preset? |
CameraPreset |
CameraPreset.Default |
The knobs a knob left out takes. |
rememberFraming? |
boolean |
false: each load starts behind the character |
Keeps where the player left the camera on this device, under the game’s name, and puts it back as the camera mounts: its turn, tilt and distance. A view setting, never part of the player’s save. |
riseOverGround? |
boolean |
false |
Whether the eye keeps its distance and turns down over ground that climbs behind the character, rather than pulling in along its line to the character’s head, as on a walk down a steep slope, as Cinemachine 3’s Decollider lifts its camera over terrain. It turns down at most to 40 degrees and keeps 1 m over the ground; a collider still pulls the eye in. Under the lock too, so the crosshair’s point moves with the turn; never in first person, and faded out as the player looks up. |
shoulderOffset? |
number |
0.49 |
Metres right of the character the aim moves while the lock is on, or at all times with alwaysShouldered, so the middle of the screen clears the character; negative is the character’s left. |
startLocked? |
boolean |
undefined |
Whether the lock is on from the start: the cursor is captured from the first click on Play, and on a touch screen with no cursor to capture the lock holds at once, with a crosshair a finger turns. |
touchLookSpeed? |
number |
MathUtils.degToRad(0.25) |
Radians a CSS pixel of a finger’s travel turns the camera under the touch lock, before the player’s Camera sensitivity multiplies it. A camera that starts locked holds its lock on a touch screen, where a finger dragged on the canvas turns it. |