velocity=Disc((0,0,0), (1,1,0), 50, 50),
Casey has done this by adding deviations in the x and y directions.
This will create a kind of disordered spirally orbit, like in the
magnet example. If you want a circular orbit you'll need to make it
exactly perpendicular.
The integrator is just Euler from memory, so expect even a perfectly
initialised orbit to spiral in or out if the particles are allowed to
live long enough.
-Andrew C
A better integrator is on my short-list for new features. Euler is
pretty bad when magnets are involved.
-Casey
Or at least there's a bug in the interaction between textures loaded
by pyglet. resource.image and lepton's texturizer. Probably something
to do with the subtexture stuff due to resource using texture atlases.
No time to look into it right now :(
Richard
Yeah, the pyglet resource images are a bit high-level for use directly
in texturizers without more hinting. To make them work you would need
to pass in the texture id and the texture coordinates. When passing
just the id, the texturizer assumes it should apply the whole texture
to the particles. However custom texture coordinates will only work
with the billboard renderer because the point renderer just uses point
sprites, and afaik you cannot specify texture coordinates for those.
-Casey
It'd be awesome to be able to supply a pyglet texture object (or
anything that has a texture id and tex_coords) - pyglet's resource
module automatic texture atlas packing is really nice and saves on
texture context swapping.
Richard
Yeah, it should be easy to add an alternate SpriteTexturizer
constructor that takes an arbitrary pyglet texture object and does the
right thing. I'll look into that.
-Casey