Преглед изворни кода

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

changed collisionInfo.Normal to collisionInfo.GetNormal()
Matthew пре 2 година
родитељ
комит
e24da9a7da
1 измењених фајлова са 1 додато и 1 уклоњено
  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());
         }
     }