- Home /
How can I angle an image along an line renderer and maintain a look-at-camera rotation?
Hey all,
I need some guidance with rotations. In this picture http://imgur.com/9qOA75W you can see lines being drawn from an answer box to an object. Along the lines are pulse images that are ellipses. My question is how can I have the ellipses' right vector angled the same as the line while maintaining a look at camera rotation? (Hopefully I asked that correctly)
So essentially the length of the ellipse should become one with the line in a sense. Thus the end result would look something like this http://imgur.com/6deP9l0 .
I know I can make the ellipses always face the camera by doing this:
pulse.transform.rotation = Quaternion.LookRotation(pulse.transform.position - Camera.main.transform.position);
But I don't know how I can edit this line of code to also include what I asked.
Thanks for any help and let me know if I need to clarify anything. -E
Your answer
Follow this Question
Related Questions
Align GameObject to Terrain angle 2 Answers
Creating a multiple part turret what locks onto certain axis. 4 Answers
90 Degree stopping rotation on y-axis issue 0 Answers
How to get angular difference? 2 Answers