亚洲国产无码在线观看,久久国产精品12,性开放国产精品按摩Av,国产精品啪啪一区二区三区

Skip to content
On this page

firstPersonCameraControl ?

FirstPersonCameraControl ?

Kind: global class

new FirstPersonCameraControl(opts) ?

第一人稱控制(帶碰撞檢測)

ParamTypeDescription
optsobject參數(shù)
opts.viewerViewer場景類
opts.isOctreeboolean是否開啟八叉樹碰撞,默認(rèn)射線檢測(大場景亦可)。八叉樹(碰撞較為流暢,超過 4 萬面場景建立八叉樹會有卡頓崩潰問題,目前適用于小場景)
opts.collidersArray碰撞對象
opts.moveSpeednumber移動速度
opts.speedUpnumber加速度(同時按 shift 后的速度倍數(shù))
opts.lookSpeednumber轉(zhuǎn)向速度
opts.distancenumber前后碰撞的距離
opts.personHeightnumber人的高度

firstPersonCameraControl.colliders ?

Kind: instance property of FirstPersonCameraControl

ParamTypeDescription
collidersobjectset objects for collision detection

firstPersonCameraControl.enabled ?

Kind: instance property of FirstPersonCameraControl

ParamTypeDescription
isEnabledbooleanset if this camera control is enabled

firstPersonCameraControl.enabled ?

Kind: instance property of FirstPersonCameraControl
Description:: getter if current camera control is enabled.

firstPersonCameraControl.rotateX(value) ?

Kind: instance method of FirstPersonCameraControl
Description:: rotate camera by left/right
Return:: null

ParamType
valuenumber

firstPersonCameraControl.rotateY(value) ?

Kind: instance method of FirstPersonCameraControl
Description:: rotate camera by up/down
Return:: null

ParamType
valuenumber

firstPersonCameraControl.update() ?

Kind: instance method of FirstPersonCameraControl
Description:: update current calcuate each frame.