GitBrincie212 / Apel-Mod

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
Other
2 stars 1 forks source link

Cone/Cylinder Instructions, plus a ParticleEllipsoid #24

Closed DarthSharkie closed 2 months ago

DarthSharkie commented 2 months ago

As mentioned, here's cone/cylinder as instructions. I also threw in the Ellipsoid, since it was straightforward based on the Sphere.

Note: I did not make Sphere inherit from Ellipsoid because even though a sphere "is-an" ellipsoid, it should not have the x/y/z semi-axis properties exposed. Theoretically, I could have implemented those properties in a way that maintained equal semi-axis length, but if someone were to assign or cast it to a ParticleEllipsoid, they would then access the parent methods, and be able to break the invariant required by a sphere of a single value for the radius.