five-on-it / apps/client/src/renderer/gallery-camera / GalleryCamera
Interface: GalleryCamera
Defined in: apps/client/src/renderer/gallery-camera.ts:91
The galleries' camera: where it looks, how fast it moves, and the calls that move it.
Properties
camera
readonlycamera:ArcRotateCamera
Defined in: apps/client/src/renderer/gallery-camera.ts:92
speed
speed:
number
Defined in: apps/client/src/renderer/gallery-camera.ts:94
Its speed (a quarter to eight times): kept in the browser for its gallery when set.
Methods
frame()
frame(
target,from):void
Defined in: apps/client/src/renderer/gallery-camera.ts:98
Looks at target from from (both in the scene's frame); this becomes the focus.
Parameters
target
Vector3
from
Vector3
Returns
void
look()
look(
x,z,height):void
Defined in: apps/client/src/renderer/gallery-camera.ts:96
Looks at (x, z) on the ground from height metres up, as the game's camera does; this becomes the focus F goes back to.
Parameters
x
number
z
number
height
number
Returns
void
onSpeed()
onSpeed(
listener):void
Defined in: apps/client/src/renderer/gallery-camera.ts:102
Calls listener with the new speed whenever it changes (a key, the slider).
Parameters
listener
(speed) => void
Returns
void
view()
view():
object
Defined in: apps/client/src/renderer/gallery-camera.ts:100
Where it looks on the ground and from how high (m).
Returns
object
height
height:
number
x
x:
number
z
z:
number