Socket
Socket
Sign inDemoInstall

lesca-cannon-debug-renderer

Package Overview
Dependencies
2
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lesca-cannon-debug-renderer

Cannon Debug Renderer modulizer


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

dev by JamesHsu made in Taiwan

Installation

$ npm install lesca-cannon-debug-renderer --save

Usage

Cannonjs debug renderer for Three.js. transiform to es6 version read more => https://github.com/schteppe/cannon.js/tree/master/tools/threejs

import CannonDebugRenderer from 'lesca-cannon-debug-renderer';

const world = new CANNON.World();
const scene = new THREE.Scene();

const cannonDebugRenderer = new CannonDebugRenderer(scene, world);

function render() {
	requestAnimationFrame(render);
	world.step(timeStep);
	cannonDebugRenderer.update();
	renderer.render(scene, camera);
}
render();

Keywords

FAQs

Last updated on 23 May 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc