View on GitHub


BabylonJS extension for free camera with the 3dRudder controller

Download this project as a .zip file Download this project as a tar.gz file

license language Node.js BabylonJS

BabylonJS 3dRudder extension


npm install babylonjs-3drudder

import * as BABYLON3dRudder from 'babylonjs-3drudder';
var camera = new BABYLON.FreeCamera('camera1', new BABYLON.Vector3(0, 5,-5), scene);
// add 3dRudder input to move the camera
var input3dRudder = new BABYLON3dRudder.FreeCamera3dRudderInput();
camera.inertia = 0;
input3dRudder.speedTranslation = new BABYLON.Vector3(0.5,0.1,1);
input3dRudder.speedRotation = 0.05;
// attach the camera to the canvas
camera.attachControl(canvas, false);

Build for browser