Catalog npm
Back to packageRELEASE DETAILS

0.0.5

npm

3d-bullet-raub

Bullet physics plugin for Node.js 3D Core

3dbulletnodepluginthreejsnode3dphysics
Published26 Jan 2018
Direct dependencies1
Transitive dependenciesNot calculated

README

Current package documentation

Node.js 3D Bullet

This is a part of Node3D project.

NPM ESLint Test

npm i -s 3d-bullet-raub

Bullet physics plugin for Node.js 3D Core

Example

This plugin provides the Shape class to simplify the common use cases with Three.js and Bullet Physics addon.

  • Can display debug shapes.
  • Updates mesh pose from physics engine.
  • Removes meshes when the body is destroyed.
  • Shape extends Body and works with scene.hit()/scene.trace().
import * as three from 'three';
import { init, addThreeHelpers } from '3d-core-raub';
import { init as initBullet } from '3d-bullet-raub';

const { gl, loop, Screen } = init();
addThreeHelpers(three, gl);
const { scene, Shape } = initBullet({ three });

const screen = new Screen({ three });

const plane = new Shape({
	sceneThree: screen.scene,
	color: 0xface8d,
	type: 'plane',
	debug: 'solid',
});

const box = new Shape({
	sceneThree: screen.scene,
	pos: [0, 10, 0], // use { xyz } or [xyz]
	mass: 3,
	debug: 'solid',
	color: 0xbeefed,
	size: { x: 3, y: 2, z: 1 }, // use { xyz } or [xyz]
});

loop(() => {
	scene.update();
	screen.draw();
});

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
node-bullet-raub
Environment
{
  "local_name": "node-bullet-raub",
  "alias": false,
  "peer_metadata": null
}
0.0.8runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "dcdd62484be0a3f25119a4ce284745fad2592067",
  "tarball": "https://registry.npmjs.org/3d-bullet-raub/-/3d-bullet-raub-0.0.5.tgz",
  "integrity": "sha512-qBKnK+F4td55e8oMEjqsJo8PlPSlEgmZY26pJw7o8UK17zeYWtbo9pG52jQ/7t77P7IC3dOzPi5dO6z9jSdFzQ==",
  "signatures": [
    {
      "sig": "MEUCIHjPJG02vXfDv8k1M2kusan0C4nIRAv67z4i2X/qgOooAiEAkyQva435ZeYczer+bU3AAFTxsdMfvbEqk9BZzEcoE60=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ]
}

Repository

PENDING
node-3d/3d-bullet-raub

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
raub/node-3d-bullet

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:32 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:2a15d81fa2747744af1f6d9ed308f6ed3bbd5459bb14af26ac4e6d707c98932f

Other collected versions

3.0.019 Mar2.0.114 Jan2.0.028 Nov1.0.08 Jan0.0.1014 May0.0.92 MayView all collected versions →