drag ANY rigidbody in 3D with mouse click and wasd

Hello, I am fairly new to unity I am SURE this question has probably been answered already. I have spent a couple hours searching the forums and have tried several approaches but can’t seem to find an answer that worked.

Can anyone point me to a link or suggest a solution? Thanks.

I am using raycast to detect the objects within X units of player.
I DON’T want to make the player the parent of the object (I did try however, with no luck)

I want to try to use raycasthit.distance + the angle difference from mouse click to mouse movement to determine the new position of the object but don’t know the math or code to do so.

I feel like I’m trying to brute force this when there is probably an easy solution.

1 Answer

1

These people seemed to go at it here

Also, I live at this Unity Reference Search Engine