Class Physics

kokomi.js uses cannon.js for physics. Just create mesh and body, and add it to base's physics!

Demo: https://codesandbox.io/s/kokomi-js-physics-tffxge?file=/src/app.ts

Hierarchy (view full)

Constructors

Properties

base: Base
container: Scene
emitter: Emitter<any>
meshPhysicsObjects: MeshPhysicsObject[]
world: World

Methods