From 75a028d55822cf0a21246f0f3ab7c746bf035ca8 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Mon, 6 Sep 2021 15:56:16 -0400 Subject: [PATCH] Introduce projectile.Position() utility --- physics.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/physics.go b/physics.go index ef3a31e..78fbcff 100644 --- a/physics.go +++ b/physics.go @@ -76,3 +76,8 @@ func (p *Projectile) Update() Point { return p.pos } + +// Position returns the position of the projectile +func (p *Projectile) Position() Point { + return p.pos +}