-
Notifications
You must be signed in to change notification settings - Fork 24
Scripts.CameraShake
Wesley Haws edited this page Jan 1, 2017
·
4 revisions
##Scripts - CameraShake
###What does this do?
Shakes the camera when the functions "ShakeCamera()" or "ShakeCamera(amount, duration)" is triggered.
###Who/What is this for?
Player object only.
###Setup
Example Setup:
(Note: This example is counting on you using "ShakeCamera(amount, duration)" function. If you don't want to supply values have them already set in the inspector)
Parameter | Type | Description |
---|---|---|
Debug Mode | bool | For debugging only. Will log shake information. |
Shake Amount | float | How much to randomly shake the camera. |
Shake Duration | float | How long to randomly shake the camera. |
Smooth | bool | Enable smooth shaking. No jarring. |
Smooth Amount | float | Transition time to slowly fade out shaking. |
The following is a list of github repositories that made all of this possible:
delta patches: https://github.com/OctopusDeploy/Octodiff
.net 4 implemented in Monodevelop: https://github.com/mono/mono
Tuples In Unity: https://gist.github.com/michaelbartnett/5652076
Octodiff: https://github.com/OctopusDeploy/Octodiff
Input Manager: https://github.com/daemon3000/InputManager