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

Bezier Animator fixes #28

Closed DarthSharkie closed 4 months ago

DarthSharkie commented 4 months ago

Two fixes included here:

  1. Fix the StackOverflowException by untangling convertToSteps and getDistance. Curve distance is needed to determine the steps per curve when the interval is provided, but that shouldn't assume any overall step count.
  2. Fix the ArrayIndexOutOfBoundsException by ensuring the constructors produce renderingSteps and renderingInterval arrays with the appropriate number of elements.

This and #27 both change PathAnimatorBase to add the same defaulting array functions. I think those will merge OK, but if not, I can rebase.