Dragging and dropping items in first person

do I remove var pickedEntity = result.entity;

No, only the line with the error.

ok

do I turn off the original script?
not delete just turn off

1 Like

When I click it doesnt pick up the block

Did you do this?

i forgot about that, wht do you mean by it?

What do you mean with what do I mean? If you don’t put the right code in the script then the script wouldn’t do the right thing.

sorry, im not the best when it comes to code

Tomorrow I will create a sample project for you.

Below the promised sample project. Unfortunately it is not finished yet and I still have to improve the project. For now make sure your mouse is in the middle of the crosshair the first click.

https://playcanvas.com/project/874243/overview/drag-and-drop

1 Like

ok, and thank you

its perfect, thank you.

its working well, thank you so much

You’re welcome. I will improve the project as soon as possible. (Correcting the raycast end position and maybe adding a jump feature).

Albertos, you’ve been such a great help, and nice to talk to, thank you so much

Cheers,
–Nicholas

1 Like

Done.

ok, thank you, and um, yeah, have a nice day

–cheers, nicholas