Skip to content

v2.7.0

Latest
Compare
Choose a tag to compare
@setanarut setanarut released this 29 Sep 01:15
be8b416

[v2.7.0] Change Log

  • Zoom was also included in the camera shaking
  • More noise types with the new fastnoise package.

Changed

CameraShakeOptions{} field names have changed. MaxZoomFactor added.

type CameraShakeOptions struct {
	// Noise generator for noise types and settings.
	Noise         *fastnoise.State[float64]
	MaxX          float64 // Maximum X-axis shake. 0 means disabled
	MaxY          float64 // Maximum Y-axis shake. 0 means disabled
	MaxAngle      float64 // Max shake angle (radians). 0 means disabled
	MaxZoomFactor float64 // Zoom factor strength [1-0]. 0 means disabled
	TimeScale     float64 // Noise time domain speed
	Decay         float64 // Decay for trauma
}