Hey ew,

   As far as I know, if you want to draw a true line (ie. not as a 
sprite.Sprite object) you will have to implement your own math routines to 
do the necessary transformations.  You could create a line primitive that 
has a .rotate and .translate method using a batched vertexlist and render.  
Something like this

class Line(Primitive):
    def __init__(self, x1, y1, z1, x2, y2, z2, group, batch):
         super(Primitive, self).__init__(self, batch, group)
  



On Friday, August 1, 2014 12:03:22 AM UTC-4, ew wrote:
>
> Hi,
>
> I've only started recently to use the pyglet module.
>
> I have drawn a line on the window.
>
> What I'd like to do are the following:
>
> 1) Be able to rotate the line 360 degrees in any direction
> 2) the line rotates accordingly.
>
> I know I need to add an event (on_mouse_drag ?), but what
> I'd like to know is do I need to do the mathematical calculations
> to update the line (to make it rotate), or does it automatically
> do it when I call some function like rotateScene(xDegrees, yDegrees, 
> zDegrees)?
> I'm still reading up on the docs though, so I could've missed
> some details.
>
> Thanks
>
> ew
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to