Preparing search index...
The search index is not available
kokomi.js
kokomi.js
FirstPersonCamera
Class FirstPersonCamera
Reference:
https://www.youtube.com/watch?v=oqKzxPMLWxo&t=28s&ab_channel=SimonDev
Hierarchy (
view full
)
Component
FirstPersonCamera
Index
Constructors
constructor
Properties
base
camera
container
emitter
forward
Speed
left
Speed
phi
phi
Speed
rotation
rotation
Enabled
theta
theta
Speed
translation
translation
Enabled
Methods
add
Existing
emit
off
on
update
update
Camera
update
Rotation
update
Translation
Constructors
constructor
new
First
Person
Camera
(
base
,
config
?
)
:
FirstPersonCamera
Parameters
base
:
Base
config
:
Partial
<
FirstPersonCameraConfig
>
= {}
Returns
FirstPersonCamera
Properties
base
base
:
Base
camera
camera
:
Camera
container
container
:
Scene
emitter
emitter
:
Emitter
<
any
>
forward
Speed
forward
Speed
:
number
left
Speed
left
Speed
:
number
phi
phi
:
number
phi
Speed
phi
Speed
:
number
rotation
rotation
:
Quaternion
rotation
Enabled
rotation
Enabled
:
boolean
theta
theta
:
number
theta
Speed
theta
Speed
:
number
translation
translation
:
Vector3
translation
Enabled
translation
Enabled
:
boolean
Methods
add
Existing
add
Existing
(
)
:
void
Returns
void
emit
emit
(
type
,
event
?
)
:
void
Parameters
type
:
string
event
:
any
= {}
Returns
void
off
off
(
type
,
handler
)
:
void
Parameters
type
:
string
handler
:
any
Returns
void
on
on
(
type
,
handler
)
:
void
Parameters
type
:
string
handler
:
any
Returns
void
update
update
(
time
)
:
void
Parameters
time
:
number
Returns
void
update
Camera
update
Camera
(
)
:
void
Returns
void
update
Rotation
update
Rotation
(
)
:
void
Returns
void
update
Translation
update
Translation
(
)
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
base
camera
container
emitter
forward
Speed
left
Speed
phi
phi
Speed
rotation
rotation
Enabled
theta
theta
Speed
translation
translation
Enabled
Methods
add
Existing
emit
off
on
update
update
Camera
update
Rotation
update
Translation
kokomi.js
Loading...
Reference: https://www.youtube.com/watch?v=oqKzxPMLWxo&t=28s&ab_channel=SimonDev