https://github.com/forlornu/camerashake
A camera-shake script for unity3d. An example "trigger" is used in this project that takes into account the distance from an explosion, shaking the camera more or less depending on how far away they are
https://github.com/forlornu/camerashake
camera-shake game-development unity3d
Last synced: about 1 month ago
JSON representation
A camera-shake script for unity3d. An example "trigger" is used in this project that takes into account the distance from an explosion, shaking the camera more or less depending on how far away they are
- Host: GitHub
- URL: https://github.com/forlornu/camerashake
- Owner: ForlornU
- Created: 2023-04-28T23:38:31.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-03T17:55:57.000Z (about 3 years ago)
- Last Synced: 2025-02-28T05:41:29.238Z (over 1 year ago)
- Topics: camera-shake, game-development, unity3d
- Language: C#
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CameraShake

A camera-shake script for unity3d
Contains 2 script
- CameraShake
- ExampleTrigger
CameraShake.cs goes on your camera, I suggest parenting the camera to an empty game object and zeroing its transform values
ExampleTrigger.cs Can be attached to any other object, the closer that object is, the stronger it will shake the camera
Explained in video here: https://youtu.be/EQYVa5Oe8EU
Copy and paste the code or clone the files to your computer