瀏覽代碼

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

changed collisionInfo.Normal to collisionInfo.GetNormal()
Matthew 2 年之前
父節點
當前提交
d67a4e9e63
共有 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());
         }
     }