Moving a 3d object with mouse drag

I’m using Screen space overlay

if I do the following. Moving the mouse a hair moves a GameObject a ton on the terrain. Which cause the canvas size is so huge and the terrain size is so small.

If I did increase the terrain size that probably won’t fix that though. Since I have it set for the canvas to resize on screen size. Anyone have any ideas how to handle something like this? Thanks

var currentPosition = card.transform.position;


currentPosition.x += pointerData.delta.x;

currentPosition.y += pointerData.delta.y;

card.transform.position = currentPosition;

Ahh nevermind. I just found ScreenToWorldPoint() lmao
makes sense that something like that would have to exist sense a ton of games would need that.

try to make 2 canvas.