Catalog npm
Back to packageRELEASE DETAILS

3.0.0

npm

3d-bullet-raub

Bullet Physics plugin for Node.js 3D Core

3dbulletnode3dphysicspluginnodethreejs
Published19 Mar 2025
Direct dependencies8
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 8

Native requirements
8 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
bullet-raub
Environment
{
  "local_name": "bullet-raub",
  "alias": false,
  "peer_metadata": null
}
^4.1.0runtime
three
Environment
{
  "local_name": "three",
  "alias": false,
  "peer_metadata": null
}
0.174.0development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^9.17.0development
@eslint/js
Environment
{
  "local_name": "@eslint/js",
  "alias": false,
  "peer_metadata": null
}
^9.17.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.7.2development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^22.10.5development
3d-core-raub
Environment
{
  "local_name": "3d-core-raub",
  "alias": false,
  "peer_metadata": null
}
^5.3.0development
@types/three
Environment
{
  "local_name": "@types/three",
  "alias": false,
  "peer_metadata": null
}
0.174.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "5afc8110d256a204d3db35e3d810afe32f626a94",
  "tarball": "https://registry.npmjs.org/3d-bullet-raub/-/3d-bullet-raub-3.0.0.tgz",
  "fileCount": 6,
  "integrity": "sha512-8KB+w8aZu7l7zEB4+jz8pQWhhc2am3L16PgDKO3r2Hox18w9kDCZLdoqB6a6CVSVe3+yoSaU914S/Mje2zhdSQ==",
  "signatures": [
    {
      "sig": "MEUCIHeIv7mq2xxQkA1G8xvC0VYxu6YrbwlCWixXhKqxIBR7AiEAo5cnWv6YDef8NH5lSnVoP7S3K7X+q8il+8ZMREGvoLw=",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 8179
}

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:630b78fc62e205a4e640994a8accebc0ddb045dc303313c82ce98ba11a6e201e

Other collected versions

2.0.114 Jan2.0.028 Nov1.0.08 Jan0.0.1014 May0.0.92 May0.0.85 FebView all collected versions →