behdad / box2d

Automatically exported from code.google.com/p/box2d
2 stars 12 forks source link

e_fixedRotationFlag incorrect? #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago

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