cannon-es
    TypeScript icon, indicating that this package has built-in type declarations

    0.19.0 • Public • Published

    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'
    
    // ...

    Documentation

    Examples

    TO DO:

    Install

    npm i cannon-es

    DownloadsWeekly Downloads

    16,166

    Version

    0.19.0

    License

    MIT

    Unpacked Size

    772 kB

    Total Files

    8

    Last publish

    Collaborators

    • drcmda
    • marcofugaro
    • codynova
    • heyo_sean
    • stockhuman