Skip to content

Incorrect Cylinder shape #6

@tomo0613

Description

@tomo0613

As of new version of cannon-es Cylinder.type is equal to Shape.types.CYLINDER (as it should be).

But so far the debug-renderer handled Cylinders as ConvexPolyhedrons and now every cylinder is represented as the default "CylinderGeometry(0.5, 0.5, 1, 32)"

I'm not sure about the proper fix, but removing the body of "case CYLINDER" in "function createMesh()" leaving as
case CYLINDER: \n case CONVEXPOLYHEDRON: ...
solves the issue,
(the "function typeMatch()" also has not prepared to handle cylinders)

cannon-es_debug-renderer_cylinder_issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions