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

changed collisionInfo.Normal to collisionInfo.GetNormal()

Surya Narayan 2 éve
szülő
commit
5c30e12f9a
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());
         }
     }