CameraShake constructor

CameraShake({
  1. double decayRate = 1.2,
  2. double frequency = 25.0,
  3. Vector3? maxTranslation,
  4. Vector3? maxRotation,
})

Creates a camera shake generator with optional decay and limit parameters.

Implementation

CameraShake({
  this.decayRate = 1.2,
  this.frequency = 25.0,
  vm.Vector3? maxTranslation,
  vm.Vector3? maxRotation,
}) : maxTranslation = maxTranslation ?? vm.Vector3(0.2, 0.2, 0.1),
     maxRotation = maxRotation ?? vm.Vector3(0.06, 0.06, 0.04);