Skip to content

node-3d/3d-bullet-raub

Repository files navigation

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

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,
});