[SOLVED] Section 5, Lecture 73 - Paddle Misalignment

Observed Behavior:
Even though the paddle’s position is set to position 8 on the x axis, it does not align with the ball.

Expected Behavior:
Both the Ball and Paddle should be centered.

Steps to Reproduce:

  1. Drag the right brick from the “Assets>Sprites” folder to the center of the screen.
  2. Select it in the hierarchy, and in the Inspector set the X position to 8.

What I have tried:

  1. Selecting the “right brick” sprite in the Assets panel. In the inspector click the “Sprite Editor” button. Setting the Pivot drop down menu to “Center”
  2. After setting the pivot of the sprite to center, toggling the Center/Pivot button at the top of the Scene window.
  3. After setting the pivot of the sprite to center, toggling the Local/Global button at the top of the Scene window.

Paddle Selected In Hierarchy:

Ball Selected in the Hierarchy:

EITHER, the pivot point needs to be set before you drag the sprite to the screen,
OR, I did not properly apply the pivot transform using the sprite editor. I might not have hit apply when I was editing it.

I believe it is the latter. Also, if you do need to change the pivot point, make sure not to forget to change the Box Collider 2D afterwards.

Privacy & Terms