Constructor
new FirstPersonControls(renderer)
- Source:
Creates an instance of FirstPersonControls.
Parameters:
Name | Type | Description |
---|---|---|
renderer |
Renderer | An instance of a Lore renderer. |
Methods
update(e, source) → {FirstPersonControls}
- Source:
Update the camera (on mouse move, touch drag, mousewheel scroll, ...).
Parameters:
Name | Type | Description |
---|---|---|
e |
any | A mouse or touch events data. |
source |
String | The source of the input ('left', 'middle', 'right', 'wheel', ...). |
Returns:
Returns itself.
- Type
- FirstPersonControls