Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babylonjs-3drudder

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babylonjs-3drudder

BabylonJS extension for the 3dRudder controller

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by250%
Maintainers
1
Weekly downloads
 
Created
Source

license language Node.js BabylonJS

BabylonJS 3dRudder extension v1.0.7

  • 3dRudder-js version 2.0.6

Usage

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.inputs.add(input3dRudder);
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);
  • Use discovery
var input3dRudder = new BABYLON3dRudder.FreeCamera3dRudderInput({"schemeWs":"ws", "discovery": true});
input3dRudder.onDiscovery.add((urls) => {
    if (urls.length > 0) {
        input3dRudder.connect(urls[0].ip);                        
    } else {
        console.log("no servers found");
    }
});

Build for browser

  • npm install
  • npm run build

Sample

  • FreeCamera
  • PlayGround

Keywords

FAQs

Package last updated on 16 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc