Skip to main content

FirstPersonShooterCoordinator

@zylem/game-lib


@zylem/game-lib / behavior / FirstPersonShooterCoordinator

Class: FirstPersonShooterCoordinator

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/coordinators/first-person-shooter.d.ts:28

Coordinator that fans a single input snapshot out to the first-person behavior ($fps) and the Jumper3D behavior ($jumper), converting local move axes into the camera-relative world direction the jumper uses for air control.

Constructors​

Constructor​

new FirstPersonShooterCoordinator(entity, fpsController): FirstPersonShooterCoordinator

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/coordinators/first-person-shooter.d.ts:31

Parameters​

entity​

FirstPersonShooterEntity

fpsController​

FirstPersonShooterControllerHandle

Returns​

FirstPersonShooterCoordinator

Methods​

update()​

update(input): void

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/coordinators/first-person-shooter.d.ts:32

Parameters​

input​

FirstPersonShooterInput

Returns​

void