Forráskód Böngészése

Merge pull request #7549 from Surya-Narayan/fix-c#-incorrect-example-method

changed collisionInfo.Normal to collisionInfo.GetNormal()
Matthew 2 éve
szülő
commit
d67a4e9e63
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      tutorials/physics/physics_introduction.rst

+ 1 - 1
tutorials/physics/physics_introduction.rst

@@ -414,7 +414,7 @@ Or to bounce off of the colliding object:
         {
             var collisionInfo = MoveAndCollide(_velocity * (float)delta);
             if (collisionInfo != null)
-                _velocity = _velocity.Bounce(collisionInfo.Normal);
+                _velocity = _velocity.Bounce(collisionInfo.GetNormal());
         }
     }