<div dir="ltr"><div><div><div>Hi all,<br></div>I&#39;ve been trying to render a line in Gem, so I&#39;m wondering if it&#39;s best to use [curve] (which is actually a curve as it indicates), or [rectangle] with a very small x value, so that it looks like a line.<br>
</div>My problem is that I want to give this line an angle, so I&#39;ve been using [shearXY] for now. I also want to make the line grow from nothing to the full desired length, but with [rectangle] it will grow from the middle, so in order to make it grow from the starting point to the ending point, you have to give [rectangle] a continuous x,y offset.<br>
This way it&#39;s really hard to determine the starting and ending point of the line. So, If for example the x,y coordinates of the starting and ending point are random, then the angle and length will also be random and you&#39;ll have to manipulate three different objects simultaneously ([rectangle], [translate] and [shearXY]), and I&#39;m not sure if I can find the formula for all these calculations. <br>
</div>Is there an easier technique for this?<br></div>