- Home /
Question by
poopy_nooby · Apr 30, 2018 at 06:39 AM ·
raycastlistlerpraycasthit
Moving a gameobject to another location when tapped - Raycasting and Lerp,Want to lift a gameobject when it is hit - Raycasting and Lerp
I have a list of gameobjects which are hats. I have placed them on the scene. I now want to check which hat the user taps and then lift that hat with an animation. I have attached the image which shows a snapshot of the method which is supposed to implement the desired lifting of hat. However, when I build the project , on tapping the hat, it just disappears rather than linearly extrapolating to a new location (0,2,0). What is wrong with this code? This is part of an AR application which I am trying to develop.
screen-shot-2018-04-30-at-114537-am.png
(47.9 kB)
screen-shot-2018-04-30-at-114537-am.png
(47.9 kB)
Comment
Your answer
Follow this Question
Related Questions
Adding an empty raycast hit to a list 1 Answer
A node in a childnode? 1 Answer
Something fishy with RaycastHit 1 Answer