소스 검색

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.
     # 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
     # 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)
     # (This can be shortened to 0b1101)
 
 
     # Hexadecimal equivalent (1101 binary converted to hexadecimal)
     # Hexadecimal equivalent (1101 binary converted to hexadecimal)