shake(intensity, duration, force, direction, shakeBounds) → {boolean}
This creates a camera shake effect. It works by applying a random amount of additionalspacing on the x and y axis each frame. You can control the intensity and durationof the effect, and if it should effect both axis or just one. When the shake effect ends the signal Camera.onShakeComplete is dispatched.
Parameters
Name Type Argument Default Description intensity float <optional> 0.05 The intensity of the camera