Browse Source

Merge pull request #7646 from rametta/patch-2

Fix bug in collision masking bits example
Matthew 2 năm trước cách đây
mục cha
commit
64a90bd71f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tutorials/physics/physics_introduction.rst

+ 1 - 1
tutorials/physics/physics_introduction.rst

@@ -169,7 +169,7 @@ would be as follows::
 
     # Binary - set the bit corresponding to the layers you want to enable (1, 3, and 4) to 1, set all other bits to 0.
     # Note: Layer 32 is the first bit, layer 1 is the last. The mask for layers 4,3 and 1 is therefore
-    0b10000000_00000000_00000000_00001101
+    0b00000000_00000000_00000000_00001101
     # (This can be shortened to 0b1101)
 
     # Hexadecimal equivalent (1101 binary converted to hexadecimal)