Skip to content

Chain Splines!

Compare
Choose a tag to compare
@BlizzCrafter BlizzCrafter released this 06 Apr 18:21
· 32 commits to master since this release

ADDED:

  • Added a new ChainSplineControl to the project.
  • Points of a spline are now calculating their neighbours (Left & Right).
  • It's possible to translate a specific Transform now instead of all or just the selected one.
  • Added a recursive chain-logic to enable the dynamic movement of control points (Transforms) of a spline, based on user input like mouse movement.
  • The chain translation of Transforms can now happen in the inverse direction, which affects the direct neighbours of the corresponding Transform (middle point).
  • Added EndPointColor and EndPointThickness to the Setup class.
    -- Also changed the StartPointColor from Magenta to White.
    -- The EndPointColor is Black, so the user can easily determine if such a specific point is the start or the end of a spline.

CHANGED:

  • Changed the display text of the PolygonSplineControl to PolygonSpline.
  • Changed internal Transform.Translate() to public. This gives more fine control over Transforms - espacially useful to programmatically control the tangents of a HermiteSpline (NOTE: Will be reverted in the next update and exchanged with an overridable virtual function)
  • The difference between TranslatePointFirstClick and current mouse location is now stored as "Acceleration" inside a spline. This is useful in ChainSplines.
  • The index of a Point is now set when a Transform/Tangent/Point is beeing created instead of in the draw loop.
  • Updated AssemblyInfo, LicenseYear and TwitterLink.
  • Adjusted PointColor and PointThickness, so that it is more homogeneous.
  • Simplified the drawing of a spline, by moving the calculations of the angle and distances between points to the DrawPoint()and DrawLine() methods.
  • Removed the Tank-SplineWalker from the project and added an advanced version of the Car-SplineWalker instead.
  • A spline gets drawn with Spline.Draw() now instead of Spline.DrawSpline().

FIXED:

  • Fixed a bug with "Transform.Size" beeing wrong after translation.