-
Notifications
You must be signed in to change notification settings - Fork 0
Home
This is a simple and easy-to-use Unity component to add juice and game feel to your games. This component shakes the camera using, instead of just random directions, the direction extracted from a perlin noise map. Making each movement feel more connected to the next one, and the shake overall, more fiscal and organic.
It was made following the tips of this amazing talk by Squirrel Eiserloh: Watch the youtube video.
Download the Unity Package from GitHub or Itch.io. You only need to download the Unity Package (.unitypackage) to import it into your project. Then, from Unity go to Assets > Import Package > Custom Package
, and choose the downloaded file.
Once you've added the files to your project, add the component by selecting your camera and clicking Add Component > Miscellaneous > Camera Shaker
on the inspector window. Adjust the values to your needs and now just call any of the functions from that CameraShaker to shake the camera!
This component moves and rotates the camera in local space. So if you want to move or rotate it with other components you should make the camera child of an empty game object and move/rotate that one instead, letting the Camera Shaker be the only one moving the camera directly.
Read the documentation for the Camera Shaker component here: Wiki/CameraShaker.