Auto drop using method "distance_to"

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By macog93

Hello, i have pickup system for RigidBody. Using RayCast if the object is in sight. Unfortunately when i block RigidBody let’s assume on a corner, RigidBody is still there even the Player is far. So i need autodrop RigidBody when it’s over RayCast. So think i need use “distance_to” method. Just i dont now how to code this.
Thanks for help.

What is “autodrop”?

SteveSmith | 2022-10-03 20:52