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

Missing Bullet constants #24

Open
yuri-ko opened this issue Jul 25, 2012 · 2 comments
Open

Missing Bullet constants #24

yuri-ko opened this issue Jul 25, 2012 · 2 comments

Comments

@yuri-ko
Copy link

yuri-ko commented Jul 25, 2012

Hi,

It seems constants are undefined in some (or all) ammo classes. E.g no CF_* CO_* in btCollisionObject or DISABLE_DEACTIVATION in Ammo. How can I extract Bullet constants from C++ and use them in JavaScript?

@willeastcott
Copy link
Contributor

+1. I've just hit this too. I've replaced DISABLE_DEACTIVATION with 4 for now, but preservation of the constants would be nice.

@ghost
Copy link

ghost commented Oct 3, 2014

I have encountered this problem as well. Perhaps kripken could add it to Emscription?
I have copied the constants from the bullet lib into javascript variables for use. It would be possible to just add a constants js file to the repo that adds constants to the appropriate ammo objects. It is a faster solution than getting Emscription to add them, but it also seems gross to me.

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

2 participants