Question by
tmscaf · Mar 28, 2021 at 03:05 AM ·
rigidbody2dspriterenderer
2D - Having a sprites FEET land on the clicked position rather than the sprites center
I have my movement script figured out and my sprite is moving to the desired location (touch/mouse click location). The only problem I'm running into is that I rather have the sprites feet be the item that lands on the location rather than the center of the sprite. The below image illustrates what I'm running into. The red circled area is currently how the behavior of my sprite acts when I click a location (star symbol). I would like the green circled feet to end on the star location but I'm unsure how I can change that.
screen-shot-2021-03-27-at-105908-pm.png
(282.5 kB)
screen-shot-2021-03-27-at-110325-pm.png
(38.7 kB)
Comment
Answer by noGrip · Aug 31, 2021 at 10:17 AM
Have you tried pivoting your sprite to the bottom center?