How to move one widget towards another with different anchor points?

Hello,

Im working on a card game where all the cards are Widgets.
I’m trying to add some polish to the game so that when you use the card, the card moves towards the discard pile.

The problem I’m having, is that the discard pile and the card are anchored to two different points on the canvas, so it seems impossible to animate or lerp the cards position towards the discard pile.

Does anyone have any work arounds for this? Below is an image of what I want to do.
The discard pile is anchored to the bottom left, and the card is anchored to the bottom center.

Thanks for the help!

the discard pile and the card are anchored to two different points on the canvas

In this setup you could animate the anchors and their alignment - if that’s what you’re using for card distribution. And only tackle Canvas Slot Position if a pixel specific offset is desired; as in: you want to end with an offset:

Rather than in the very bottom left corner.

1 Like

Thanks for the help!
I’ll try this method!