-
Notifications
You must be signed in to change notification settings - Fork 0
CameraShaker.AddLimitedShake
S. Lucas Serrano edited this page Dec 6, 2022
·
8 revisions
CameraShaker.AddLimitedShake
Method
Increase the cam shake by a value, but never more than a max.
Overload | Description |
---|---|
AddLimitedShake(float) | Set the camera shake to a value, only if it is not already more than that. |
AddLimitedShake(float, float) | Increase the cam shake by a value, but never more than a max. |
Set the camera shake to a value, only if it is not already more than that.
public void AddLimitedShake(float magnitude);
Parameter | Type | Description |
---|---|---|
magnitude | float |
The amount of shake to be added. Must be between 0 and 1. |
Increase the cam shake by a value, but never more than a max.
public void AddLimitedShake(float magnitude, float max);
Parameter | Type | Description |
---|---|---|
magnitude | float |
The amount of shake to be added. Must be between 0 and 1. |
max | float |
The shake can only add to be as high as this value. |