How to play animation depending on distance ?? (Video)
Oke, so i am pretty new to unity and i am making my first AR application for a design project i am doing right now. I currently have an animation attached to a slider in my AR space but i really would like the implement the feather as seen in this video from unity ARcore.
video: https://www.youtube.com/watch?v=ml9qVRdEH4k&t=51s Time Stamp: 3:10
I know they are using Vector3 to determine the distance between camera and gameobject but i don't really know how to make this work in C script.
I hope someone can find the time to help me out whit it,
Tnx
Your answer
Follow this Question
Related Questions
Moving GameObject a specific distance in the Z direction and back again - regardless of rotation 1 Answer
Distance is always zero 0 Answers
Get vector3 from cursor position relative to object in 3D plane 1 Answer
How too climb a ladder with the FPS Controller correctly 0 Answers
Dot Product not equals 1 0 Answers