title: how can i pick up items in ursina?
body: <p>Because as I programmed it by pressing the &quot;f&quot; it picks it up from anywhere on the map.</p>
  <p>I try to create an object collection system with a distance limitation, that is, you can only collect it next to the object.</p>
  <p>This is my code:</p>
  <pre><code>Arma = Entity(model=&quot;revolver.glb&quot;, collider=&quot;box&quot;, position=(10, 1, 10), scale=.04, rotation=(0,0,90))
  
  
  
  
  def input(key):
     if key == &quot;f&quot;:
        destroy(Arma)
        # Pistola
        ARMA = Entity(model=&quot;revolver.glb&quot;, parent=camera.ui, scale=.04, position=(.4, -.5),
                   rotation=(5, 170, 0))
  </code></pre>