Bläddra i källkod

Merge pull request #7646 from rametta/patch-2

Fix bug in collision masking bits example
Matthew 2 år sedan
förälder
incheckning
64a90bd71f
1 ändrade filer med 1 tillägg och 1 borttagningar
  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)