Ui collision on 3d Node

Hello ,

I’m trying to make a game card (cards are controls , maybe they will be 3d object s in the future) and the rest is 3d .

Anyone have an idee on how to handle Card being dragged over the player capsule .
Probably collision but dont understand how ?
I mean how card will detect player or player detect card to handle the next actions

Thanks

Put a Area3D around the player, it can detect the mouse

Ok, and how i will know “what’s on the mouse”

Depends on how you select your cards. When you have to click on them you can use this and save the card in a variable

1 Like