-
Notifications
You must be signed in to change notification settings - Fork 1
Gfx3CameraWASD
jay19240 edited this page Dec 11, 2024
·
2 revisions
A 3D camera implementation that behaves similar to first-person-shooter PC games.
- inherit from: Gfx3Camera
-
new Gfx3CameraWASD(viewIndex: number): Gfx3CameraWASD
- viewIndex: The view you want to bind the camera.
- delete(): void
- getFrictionCoefficient(): number
- getMaxPitch(): number
- getMinPitch(): number
- getMovementSpeed(): number
- getRotationSpeed(): number
-
setFrictionCoefficient(frictionCoefficient: number): void
- frictionCoefficient: The friction coef [0-1].
-
setMaxPitch(maxPitch: number): void
- maxPitch: The max pitch angle.
-
setMinPitch(minPitch: number): void
- minPitch: The min pitch angle.
-
setMovementSpeed(movementSpeed: number): void
- movementSpeed: The speed.
-
setRotationSpeed(rotationSpeed: number): void
- rotationSpeed: The speed.
-
update(ts: number): void
- ts: The timestep.