Question by
B1rdieboy · May 09, 2016 at 06:00 PM ·
javascriptcollisionraycast
Raycast so i can pick up an object and add it to my inventory in javascript?
I need to be able to pick up items in my game on hitting them from close distance such as food. Could someone help me write a javascript to enable this? Thank you.
Comment
I have a JS script that does exactly done (do something within a range) but it doesn't involve any raycasts.
Your answer
Follow this Question
Related Questions
How to raycast object as far as possible, without collision? 0 Answers
Raycast not working 0 Answers
How do you detect a mouse button click on a Game Object? C# 2 Answers
create object on raycast collision that follows raycast. 0 Answers
Have 3 raycast rays on a capsule and rotate them correspondingly 0 Answers