Quantcast
Channel: Questions in topic: "drawray"
Viewing all articles
Browse latest Browse all 92

Draw af line in a specific angle around an object

$
0
0
Hi. I have a transform which I can draw a Ray from using e.g. Gizmos.DrawRay. My problem is that I don't know how to define an angle instead of a direction. E.g. I can understand that transform.forward - transform.right will send it 90 degrees to the left - but how do I say "draw a line in 12 degrees to the right of transform.forward"? With regards mpark

Viewing all articles
Browse latest Browse all 92

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>