Camera
LittleJS Camera Plugin
- Camera objects that drive the view, so a game need not move cameraPos itself
- FollowCamera follows a 2D target with smoothing, an offset, a dead zone, a look ahead, level bounds and zoom
- The 3D cameras, ThirdPersonCamera3D, CameraControl3D and FirstPersonCamera3D, drive the view the same way
- The newest camera made drives the view; destroy it and the one before takes over from where the view is
- Cameras update after the objects move each update, so they are never a frame behind, and hold while paused
- cameraShake works with or without a camera object