FirstPersonBehaviorOptions
@zylem/game-lib / behavior / FirstPersonBehaviorOptions
Interface: FirstPersonBehaviorOptions
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/first-person.d.ts:139
First-person controller behavior options (typed for entity.use() autocomplete).
Properties
eyeHeight?
optionaleyeHeight?:number
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/first-person.d.ts:147
Eye height offset above entity position (default: 1.7)
lookSensitivity?
optionallookSensitivity?:number
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/first-person.d.ts:145
Look sensitivity multiplier (default: 2)
perspective?
optionalperspective?:FirstPersonPerspective
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/first-person.d.ts:149
The FirstPersonPerspective to drive (from camera.getPerspective())
runSpeed?
optionalrunSpeed?:number
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/first-person.d.ts:143
Sprint/run speed (default: 16)
viewmodel?
optionalviewmodel?:object
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/first-person.d.ts:151
Optional viewmodel (weapon/item) to position relative to the camera
cameraObject?
optionalcameraObject?:Object3D<Object3DEventMap>
Parent the viewmodel to this Object3D (e.g. the Three.js camera) for jitter-free follow.
entity
entity:
any
offset
offset:
Vec3Input
rotation?
optionalrotation?:Euler
walkSpeed?
optionalwalkSpeed?:number
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/first-person.d.ts:141
Base walking speed (default: 8)