createCameraHelm([cam], [opts])
Fly the camera from a 6-DOF device: feed it translation and rotation rates
each frame and the camera moves body-relative, a forward push flying
forward. Pass a camera to fly a second one, or opts for deadzone and a
profile that maps input channels to axes (see the probe example). Needs a
WEBGL canvas and a rate source such as a SpaceMouse, a gamepad or a
touch gesture.
| Parameter | Type | Default | Description |
|---|---|---|---|
cam optional |
p5.Camera | Object |
Camera to drive, or the opts object. Defaults to the current camera. | |
opts optional |
{ profile?: Object, deadzone?: number } |
Returns PoseHelm