Apel is a library that brings particle animations to the table with flexible behaviour and a clean developer interface. It promises also lots of predefined shapes & paths to help the developer on their particle scene
This mimics #14 by moving the sphere drawing into ParticleObject and ApelRenderer. Note that the default implementation here is both less and more efficient than the existing algorithm. It is less efficient because it doesn't cache the computed points; however, the previous point cache was ineffective because it only retained a single point. It also doesn't cache the rotations, but it makes up for that by computing the combined rotation once per tick via quaternion, which should be faster than Euler angles.
I expect that implementations of ApelRenderer will further optimize for point caches, rotation/quaternion caches, and more.
This mimics #14 by moving the sphere drawing into
ParticleObject
andApelRenderer
. Note that the default implementation here is both less and more efficient than the existing algorithm. It is less efficient because it doesn't cache the computed points; however, the previous point cache was ineffective because it only retained a single point. It also doesn't cache the rotations, but it makes up for that by computing the combined rotation once per tick via quaternion, which should be faster than Euler angles.I expect that implementations of
ApelRenderer
will further optimize for point caches, rotation/quaternion caches, and more.