Skip to content

Commit 8dfddfe

Browse files
committed
Fix bug in collision masking bits example
1 parent 3c2412d commit 8dfddfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/physics/physics_introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ would be as follows::
169169

170170
# Binary - set the bit corresponding to the layers you want to enable (1, 3, and 4) to 1, set all other bits to 0.
171171
# Note: Layer 32 is the first bit, layer 1 is the last. The mask for layers 4,3 and 1 is therefore
172-
0b10000000_00000000_00000000_00001101
172+
0b00000000_00000000_00000000_00001101
173173
# (This can be shortened to 0b1101)
174174

175175
# Hexadecimal equivalent (1101 binary converted to hexadecimal)

0 commit comments

Comments
 (0)