Catalog npm
PACKAGE EXPLORERView in registry

3d-bullet-raub

npm

Bullet Physics plugin for Node.js 3D Core

3dbulletnode3dphysicspluginnodethreejs
Versions collected14
Direct dependencies8From release 3.0.0
Last observed20 Oct, 19:32 UTC

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.

Versions 14

Collected releases
VersionPublishedDirect dependenciesOpen version
3.0.0Registry latest19 Mar 20258
2.0.114 Jan 20201
2.0.028 Nov 20191
1.0.08 Jan 20191
0.0.1014 May 20181
0.0.92 May 20181
0.0.85 Feb 20181
0.0.728 Jan 20181
0.0.628 Jan 20181
0.0.526 Jan 20181
0.0.426 Jan 20181
0.0.324 Jan 20181
0.0.224 Jan 20181
0.0.124 Jan 20181

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

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:16daf697c5d0239f7ce0acf7e98b3835bc48699e166b739416ac068c9e8e463d