Skip to content

v2.9.0

Compare
Choose a tag to compare
@setanarut setanarut released this 01 Dec 01:25

Change Log

Added

  • (cam *Camera) ApplyCameraTransformToPoint(x, y float64) (float64, float64)
  • None, Lerp, SmoothDamp
  • SmoothOptions{}
  • Platformer demo example
  • Director demo example
const (
	// None is instant movement to the target. No smoothing.
	None SmoothingType = iota
	// Lerp is Lerp() function.
	Lerp
	// SmoothDamp is SmoothDamp() function.
	SmoothDamp
)

func DefaultSmoothOptions() *SmoothOptions {
	return &SmoothOptions{
		LerpSpeed:          0.09,
		SmoothDampTime:     0.2,
		SmoothDampMaxSpeed: 1000.0,
	}
}

Removed

  • LerpEnabled

Full Changelog: v2.8.1...v2.9.0