How to throw an item?

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

I want to make it possible for the character to catch an item by pressing the “catch” button, and throw the item using the “throw” button. How should I do it?

We need much more information. 2D/3D? what kind of “item”? A Rigidbody(2D)? etc etc etc

whiteshampoo | 2020-05-25 11:12

Item is just a sprite. The character should go to item, click on the button and it will move to his inventory. The character must click on the button and item will move from inventory to the world in front of the character.

start123 | 2020-05-25 12:55

You can tell which kind of “item” is better to use.

start123 | 2020-05-25 12:59

:bust_in_silhouette: Reply From: juppi

For 3D I can recommend you the “3D FPP Interaction Demo”:

I marked 2D in tags, what does 3D have to do with it?

start123 | 2020-05-25 19:36