I have a problem, I have a pickaxe in the players hand that rotates accordingly to the mouse.
I get the collisions using 2 RayCasts on both ends of the pickaxe.
I do this so that I can't move it inwards more, but if the second raycast isnt colliding I can pull it out again.
But when you rotate/move the pickaxe too fast, it will clip too far in the wall, and the second end also collide with the wall, and so I cant move/rotate it out again...
Is there any answer to let the pickaxe stop exactly on the wall/floor?
That would be awesome.
(I'm a not that experienced programmer yet, just so you know)
Kind regards, sian2005