소스 검색

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());
         }
     }