CameraShake constructor
CameraShake({})
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);