I have a problem with the PickUps. When I stand too close, for example in front of a rock, and pick it up, I fly through the map with the object I think setting a minimum Raycast value for PickUps could solve this. How can I implement this option? Essentially, I want to be able to pick up objects only within a range of 1-5, and anything under 1 should not work.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
I would like to see the issue for myself before settling on a solution. Could you provide steps to recreate the issue? Screenshots of your full Player Inspector, PickUp Inspector (and of any Collider children), and Settings Manager might be enough.
Yea, here is a small video
https://vimeo.com/805461177/9820cb277c
and the screenshots:
https://i.postimg.cc/RFBvJQdr/06sett1.png
https://i.postimg.cc/4dQs672Y/1-playersett1.png
https://i.postimg.cc/yN9VNrFX/2-playerset2.png
https://i.postimg.cc/3NLh6MT7/3-ston2.png
https://i.postimg.cc/SNsk9K6K/4-stone1.png
https://i.postimg.cc/y6n7WRS5/5-trunk.png
https://i.postimg.cc/qvWJ4dCv/7-set0.png
You can try raising the PickUp's Max distance from camera value, but the Ignore Player's collider? option should be preventing collisions between the PickUp and the Player.
Does the issue remain if you temporarily replace the Player's Character Controller with a Rigidbody + Capsule Collider pairing?
Test also the result of dropping this script (LimitCollisionTest.cs) into the scene: