run Camera Shake
fun runCameraShake(player: Player, intensity: Float, duration: Int, type: EffectiveScreenEffects.ShakeType = ShakeType.CONSTANT)
Shakes player's camera at intensity for duration ticks with the given easing type.
fun runCameraShake(player: Player, intensity: Float, type: EffectiveScreenEffects.ShakeType = ShakeType.CONSTANT, shouldContinue: () -> Boolean)
Shakes player's camera indefinitely while shouldContinue returns true.
fun runCameraShake(player: Player, intensity: Float, duration: Int = -1, type: EffectiveScreenEffects.ShakeType = ShakeType.CONSTANT, shouldContinue: () -> Boolean? = null)
Shakes player's camera. Runs for duration ticks (-1 = until shouldContinue returns false).
Parameters
intensity
max yaw/pitch offset magnitude
type
easing applied over the duration