This is a part of Node3D project.
npm i -s 3d-bullet-raub
Bullet physics plugin for Node.js 3D Core
import * as three from 'three';
import { init, addThreeHelpers } from '3d-core-raub';
import { init as initBullet } from '3d-qml-raub';
// Standard Node3D init
const {
doc, Image: Img, gl,
} = init({
isGles3: true, isWebGL2: true, autoEsc: true,
});
addThreeHelpers(three, gl);
// Initialize Bullet and fetch the helpers
const {
Box, Ball, Roll, Caps, Scene, Body, bullet,
} = initBullet({
three,
});
- See TypeScript declarations for more details.
- See example for a complete setup.