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.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
81 People are following this question.
Check if rotation (only on Y axis) of some object toward another is finshed?
Creating a multiple part turret what locks onto certain axis.
Set rotation based on 1,1,1 style vector? How to convert vector3 to quaternion?
Set the rotation reference to an direction
Limiting rotation of object in script