new FirstPersonCamera(parameters)
A remake of mrdoobs Quakecam that behaves the way i need it, including keypresses etc...
- Source:
- ../export/js/FPC.js, line 79
Parameters:
| Name | Type | Description |
|---|---|---|
parameters |
Object | parameters = {
fov: |
Properties
-
Browser
-
A reference to the Browser object containing all the logic and references
- Source:
- ../export/js/FPC.js, line 83
Methods
-
onKeyDown(event)
-
- Source:
- ../export/js/FPC.js, line 264
Parameters:
Name Type Description eventObject A keyboard Event -
onKeyUp(event)
-
- Source:
- ../export/js/FPC.js, line 319
Parameters:
Name Type Description eventObject A keyboard Event -
onMouseDown(event)
-
- Source:
- ../export/js/FPC.js, line 167
Parameters:
Name Type Description eventObject A mouse Event -
onMouseMove(event)
-
- Source:
- ../export/js/FPC.js, line 240
Parameters:
Name Type Description eventObject A mouse Event -
onMouseUp(event)
-
- Source:
- ../export/js/FPC.js, line 204
Parameters:
Name Type Description eventObject A mouse Event -
update()
-
Updates the camera coordinates etc
- Source:
- ../export/js/FPC.js, line 370
-
<inner> bind(scope, fn)
-
Binds a context to a function
- Source:
- ../export/js/FPC.js, line 480
Parameters:
Name Type Description scopeObject The Object we want to apply as "this" fnFunction the function we want this to be bound to