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
AnimationManager
Animator
AssetManager
Base
BasicPanorama
Bender
Box
CameraControls
Caustics
Center
Clock
Component
ContactShadows
CubemapQuad
CustomEffect
CustomMaterial
CustomMesh
CustomPoints
CustomShaderMaterial
DecalGeometry
DoubleFBO
DragDetecter
Environment
FBO
FBXLoader
FirstPersonCamera
Float
FullScreenQuad
GPUComputer
Gallery
GlassMaterial
Html
HyperbolicHelicoidGeometry
IMouse
ImagePanorama
InfiniteGallery
Joystick
Keyboard
LightFormer
MeshPhysicsObject
MeshReflectorMaterial
MeshReflectorMaterialImpl
MeshTransmissionMaterial
Moji
MojiGroup
OrbitControls
OrthographicCamera
PackedMipMapGenerator
PanoramaGenerator
PersistenceEffect
Physics
RayMarchingQuad
RaycastSelector
RectAreaLightHelper
Reflector
RenderQuad
RenderTexture
Resizer
SVGLoader
ScreenCamera
ScreenQuad
ShaderToyElement
Sparkles
SphubeGeometry
Stage
Stats
Text3D
TextMesh
ThinFilmFresnelMap
ThirdPersonCamera
TrailTexture
TrailTextureImpl
UniformInjector
Viewer
Voxelizer
WheelScroller
AnimatorConfig
AssetManagerConfig
BaseConfig
BasicPanoramaConfig
BoxConfig
CSMPatchMap
CausticsConfig
CenterConfig
ContactShadowsConfig
CreatePolygonShapeConfig
CustomEffectConfig
CustomMeshConfig
CustomPointsConfig
DoubleFBOConfig
DragDetecterConfig
EnvironmentConfig
FBOConfig
FirstPersonCameraConfig
FloatConfig
GPUComputerConfig
GalleryConfig
HorizontalGalleryConfig
HtmlConfig
ImagePanoramaConfig
InfospotConfig
JoystickConfig
LightFormerConfig
LoadGLTFConfig
LoadVideoOptions
Loaders
MeshPhysicsObjectParams
MeshReflectorMaterialConfig
MeshTransmissionMaterialConfig
MojiConfig
OrbitControlsConfig
OrthographicCameraConfig
PersistenceEffectConfig
PlaneConfig
PresetItem
ReflectorConfig
RenderTextureConfig
ResizerConfig
ResourceItem
SceneConfig
ScreenCameraConfig
Scroll
SparklesConfig
StageConfig
ThirdPersonCameraConfig
Vector3
ViewerConfig
Voxel
_CSMParam
iCSMShader
AllMaterialParams
CSMBaseMaterial
CanvasSize
Form
HTMLAssetElement
MeshReflectorMaterialProps
PanoramaConfig
ResoureList
ResoureType
iCSMParams
iCSMUpdateParams
DEFAULT_DRACO_DECODER_PATH
NormalScroller
adaptMobileDOM
applyViewScissor
beautifyRender
calcObjectPosition
calcPerspectiveScreenSize
calcTransformFov
cloneUniform
cloneUniforms
computeCurl
computeViewWindowScale
convertBufferAttributeToVector
convertGeometryToShape
createPolygonShape
detectDeviceType
downloadBlob
enableRealisticRender
enableSRGBColorSpace
enableShadow
epsilon
expandColor
exportGLTF
extendMaterial
fixShapeGeometryUV
flatModel
getBaryCoord
getBound
getBoundsVertices
getCSSMatrix
getCameraCSSMatrix
getEnvmapFromHDRTexture
getEnvmapFromScene
getImageData2DArrayFromCanvas
getObjectCSSMatrix
getPointsInPath
getPositionCentroids
getUniformFromAsset
getViewport
hyperbolicHelicoidFunction
isFloat32Array
isObjectBehindCamera
isObjectVisible
isVector
iterateBuffer
loadCubemapFromImgs
loadFBX
loadFont
loadGLTF
loadHDR
loadTextureFromImg
loadVideoTexture
makeBuffer
mapShader
normalizeVector
objectScale
objectZIndex
optimizeModelRender
patchShader
polySort
preloadImages
preloadSDFFont
preventDefaultAndStopBubble
printModel
range
roundedRect
sample
sampleParticlesPositionFromMesh
sampleSize
saturate
saveArrayBuffer
saveString
shuffle
sleep
smoothNormal
sphubeFunction
usePropAsIsOrAsAttribute
"
"
Reference: https://www.youtube.com/watch?v=oqKzxPMLWxo&t=28s&ab_channel=SimonDev