- Home /
2D object look at 3D object
Hi! I would like to make my 2D arrow point at (face) a 3D object. The arrow is an image in canvas. I've tried a lot of solutions already, but none of them worked. The arrow needs to be rotated along Z axis only. Could someone help me?
Answer by aribarzilai · Feb 18, 2018 at 09:43 PM
I only know unity 2D, so can't help you with the logistics, but to make an arrow 'point at' a 3D object...
well, 3D objects have planes. imagine that the arrow is a vector - to make it face 'at' the plane, make it perpendicular to the plane (with the arrow being the 'Normal Vector' to the plane). that's just what I think, I know nothing about 3D unity
Answer by davidjohn123 · Jul 11, 2018 at 11:00 AM
GoGoLoN
GoGoLoN Did you find the answer of your question. I'm also trying to do so. But did not find a reasonable Answer. If you have done. Please help me.
Answer by madks13 · Jul 11, 2018 at 01:41 PM
All you have to do is freeze the axe you don't want to touch. The easiest way is to save the angles of the axis you want to keep, use LookAt. then revert back the saved axis. Also, you say many solutions, but it's hard to give advice without knowing what those are, because we could simply repeat those solutions.
Your answer
Follow this Question
Related Questions
Rotating object to face target, while being rotated to match terrain slope 1 Answer
Copying the rotation matrix of an object. 3 Answers
[Please!] Noob need's help with planet gravity movement. 2 Answers
Look at rotation at a moving object while moving (C#)(2D) 3 Answers
LookAt on only 1 axis for 2D games? 1 Answer