@SebastianLague
  @SebastianLague
Sebastian Lague | [Unity] Camera Shake @SebastianLague | Uploaded February 2017 | Updated October 2024, 5 hours ago.
In this video we create a simple camera shake system, with several parameters to control the appearance of the shake.

NOTE: There've been some criticisms about the shake looking a bit "off", mostly due to the camera not slowing down towards the end. I have added an update to the source code to try and address this. The change is simple: the "speed" variable has been replaced with a maxSpeed and a minSpeed variable. The current speed of the shake is then determined by interpolating between these two values based on the damping curve. This change does make the "duration" variable less precise, but hopefully that isn't too great a concern.

The project is available here:
github.com/SebLague/Camera-Shake


If you'd like to support these videos, you can make a recurring monthly donation (cancellable at any time) through Patreon: bit.ly/sebPatreon
Or a once-off donation through PayPal:
bit.ly/SupportGamedevTutorials
[Unity] Camera ShakeCoding Adventure: AtmosphereUnity Create a Game Series (E24. Menu)Unity Gradient Editor (3/3)Introduction to Game Development (E21: coroutines)Introduction to Game Development (E05: operators and if statements)[C#] Delegates and Events (E01: delegates)Introduction to Game Development (E11: prefabs and instantiation)[Unity] Procedural Planets (E04: multiple noise filters)Gamedev Maths: point in triangleUnity Create a Game Series (E12. finishing the map generator)How Do Computers Remember?

[Unity] Camera Shake @SebastianLague

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER