TopDownCameraController
Functions
- rotate_from_view(displacement_x, displacement_y, input, output)
- panLeft(distance, object, result, multiplier)
pass in distance in world space to move left
pass in distance in world space to move up
main entry point; pass in Vector2 of change desired in pixel space, right and down are positive
rotate_from_view(displacement_x, displacement_y, input, output)
Kind: global function
| Param | Type | Description |
|---|---|---|
| displacement_x | number | |
| displacement_y | number | |
| input | TopDownCameraController | source thing being rotated |
| output | TopDownCameraController | target thing where the result is written to |
panLeft(distance, object, result, multiplier)
pass in distance in world space to move left
Kind: global function
| Param | Type |
|---|---|
| distance | number |
| object | Object3D |
| result | Vector3 |
| multiplier | Vector3 |
panUp(distance, object, result, multiplier)
pass in distance in world space to move up
Kind: global function
| Param | Type |
|---|---|
| distance | number |
| object | Object3D |
| result | Vector3 |
| multiplier | Vector3 |
pan(delta, object, element, targetDistance, fov, result, multiplier)
main entry point; pass in Vector2 of change desired in pixel space, right and down are positive
Kind: global function
| Param | Type |
|---|---|
| delta | Vector2 |
| object | Object3D |
| element | Element |
| targetDistance | number |
| fov | number |
| result | Vector3 |
| multiplier | Vector3 |