Glavin001 / cannon-es

💣 A lightweight 3D physics engine written in JavaScript.

Home Page:https://pmndrs.github.io/cannon-es/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannon-es

This is a maintained fork of cannon.js, originally created by Stefan Hedman @schteppe.

It's a type-safe flatbundle (esm and cjs) which allows for tree shaking and usage in modern environments.

These minor changes and improvements were also made:

If instead you're using three.js in a React environment with react-three-fiber, check out use-cannon! It's a wrapper around cannon-es.

Installation

yarn add cannon-es

Usage

import { World } from 'cannon-es'

// ...

or, if you're using webpack, you can import it like this while still taking advantage of tree shaking:

import * as CANNON from 'cannon-es'

// ...

TO DO:

About

💣 A lightweight 3D physics engine written in JavaScript.

https://pmndrs.github.io/cannon-es/

License:MIT License


Languages

Language:TypeScript 98.2%Language:HTML 1.2%Language:CSS 0.3%Language:JavaScript 0.3%Language:Shell 0.0%