浏览代码

Merge pull request #7646 from rametta/patch-2

Fix bug in collision masking bits example
Matthew 2 年之前
父节点
当前提交
c3d5fba31b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)