Skip to content

problem: AmmoPhysics is not a constructor ? #81

@pigLoveRabbit520

Description

@pigLoveRabbit520

enable3d is installed by npm.

here is my code:

import { Project, Scene3D, PhysicsLoader, AmmoPhysics } from 'enable3d';

....
const physics = new AmmoPhysics(this.scene);
physics.debug.enable(true)

and I got error:

Uncaught TypeError: enable3d__WEBPACK_IMPORTED_MODULE_1__.AmmoPhysics is not a constructor

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions