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

Allow appending additional objects to ParticleCombiner #12

Closed DarthSharkie closed 2 months ago

DarthSharkie commented 3 months ago

Using Arrays.asList (and similar methods) often results in unmodifiable lists. This means future calls to setObject, setOffset, appendObject, and appendObjects will not work. Handle this by creating ArrayLists when needed.

Also fix a case where the same reference to an offset was reused. If the exact same instance of the offset vector is required, the developer should explicitly set it via multiple calls to setOffset(index, offset) or set it directly on the child objects.

DarthSharkie commented 2 months ago

Updated on top of BezierCurve work.