Skip to content

Commit e24da9a

Browse files
authored
Merge pull request godotengine#7549 from Surya-Narayan/fix-c#-incorrect-example-method
changed collisionInfo.Normal to collisionInfo.GetNormal()
2 parents a187bed + 5c30e12 commit e24da9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/physics/physics_introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ Or to bounce off of the colliding object:
414414
{
415415
var collisionInfo = MoveAndCollide(_velocity * (float)delta);
416416
if (collisionInfo != null)
417-
_velocity = _velocity.Bounce(collisionInfo.Normal);
417+
_velocity = _velocity.Bounce(collisionInfo.GetNormal());
418418
}
419419
}
420420

0 commit comments

Comments
 (0)