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

e_fixedRotationFlag incorrect? #27

Closed
GoogleCodeExporter opened this issue Mar 14, 2015 · 3 comments
Closed

e_fixedRotationFlag incorrect? #27

GoogleCodeExporter opened this issue Mar 14, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

In b2Body.h on line 334 (in m_flags definition) the following is defined:
e_islandFlag = 0x0001,
e_sleepFlag = 0x0002,
e_allowSleepFlag = 0x0004,
e_bulletFlag = 0x0008,
e_fixedRotationFlag = 0x0010

I believe that "e_fixedRotationFlag = 0x0010" is incorrect as 10 would be
the sum of 2 and 8. Should this be 0x0016 instead?

Original issue reported on code.google.com by nash8...@gmail.com on 13 Oct 2009 at 8:43

@GoogleCodeExporter
Copy link
Author

It's hexadecimal 0x10 == 16 (10000 binary) which is the correct value. Whereas 
0x16
== 22 (which is 10110 binary).

Original comment by coen.cam...@gmail.com on 15 Oct 2009 at 8:05

@GoogleCodeExporter
Copy link
Author

ooh, right.. sorry about that :-) my bad.
Guess my C knowledge has sunk deeper than I thought

Original comment by nash8...@gmail.com on 15 Oct 2009 at 11:37

@GoogleCodeExporter
Copy link
Author

Original comment by erinca...@gmail.com on 20 Nov 2009 at 6:56

  • Changed state: Invalid

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

No branches or pull requests

1 participant