0

Pick up gameobject and follow cursor

Gadget Kk 2 years ago updated 2 years ago 1

Hi Everyone,

I've been struggling with this for a couple of days now and haven't been able to get an answer in discord, so thought i would try here.

What i'm trying to do is basically when you click on a game object, it will follow the cursor until it is clicked again (this is on a 3D project). The clicking and placing is easy, but when I try have the object follow the cursor it seems to b be offset and not actually on the cursor.

When i look for code online everyone just says to set the Z axis to 0 which doesn't do much to make it work. Any assistance or tuts are welcome. Thank you.

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

No one knows how to do this? I find it hard to believe i'm the first person in bolt history to want to do a click and drag mechanic...