- Home /
Move raycast.point to transform.position
Hey everyone!
Im looking for a way to pull a physics enabled rigidbody by use of raycasthit.point.
Code looks something like
grabHit.point = grabPos.position;
What im trying to accomplish to drag a log using my hands.
So i want to raycast downwards from my characters hands. If i hit something named log, grab the point i hit and move it up into my hands leaving the other end dragging along the ground. Then wherever i move, continuously pull that point with my hands until i press a button to let go.
Ive done a bit of research on google and everything i find does exactly the opposite of what i want. People want to know how to move and object to a raycast.hit. i wanna know how to move a raycast.hit to an object.
Any help is appreciated, Thank you for reading.
Your answer
