Skip to content

Commit

Permalink
Change Vector3 to Vector2
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgraham committed Sep 16, 2021
1 parent cf84348 commit 5e2c98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/Paddle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private void OnCollisionEnter2D(Collision2D collision)

if (ball != null)
{
Vector3 paddlePosition = this.transform.position;
Vector2 paddlePosition = this.transform.position;
Vector2 contactPoint = collision.GetContact(0).point;

float offset = paddlePosition.x - contactPoint.x;
Expand Down

0 comments on commit 5e2c98d

Please sign in to comment.