game-shell-orbit-camera
Creates a default orbit camera controller for a game-shell instance. The controls for this are as follows:
- Rotate - Left click
- Pan - Right click or Control + Left click
- Zoom - Scroll or Shift + Left click
Example
"use strict"
var shell = var createMesh = var simple3DShader = var attachCamera = var glm = var mat4 = glmmat4 var shader meshvar camera = camera shell shell
Install
npm install game-shell-orbit-camera
require("game-shell-orbit-camera")(shell)
Attaches a camera to the game-shell instance
Returns An instance of orbit-camera
Credits
(c) 2013 Mikola Lysenko. MIT License