Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

b2BodyType enum is not getting built by tsc #72

Open
AlvinThorn008 opened this issue Sep 26, 2020 · 0 comments
Open

b2BodyType enum is not getting built by tsc #72

AlvinThorn008 opened this issue Sep 26, 2020 · 0 comments

Comments

@AlvinThorn008
Copy link

While bundling this package with rollup, I discovered that b2BodyType was not exported because the enum b2BodyType is not defined correctly.

In FILE: \packages\box2d\src\dynamics\b2Body.ts Line 32 - 40

export const enum b2BodyType {
    b2_unknown = -1,
    b2_staticBody = 0,
    b2_kinematicBody = 1,
    b2_dynamicBody = 2,

    // TODO_ERIN
    // b2_bulletBody = 3
}

I made this correction(I removed const) and it compiled correctly.

export enum b2BodyType {
    b2_unknown = -1,
    b2_staticBody = 0,
    b2_kinematicBody = 1,
    b2_dynamicBody = 2,

    // TODO_ERIN
    // b2_bulletBody = 3
}

Please make this correction, I'm kind of illiterate when it comes to git and Github.
If someone knows how, also try to make a pull request please

Thanks and I hope this issue can be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant