Method Update
Update(Vector3, float)
Based on new position data, calculates how much shake this object is currently experiencing
Declaration
public void Update(Vector3 newPosition, float timeSlice)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | newPosition | The new position of this shaken object |
float | timeSlice | How much time has passed to get to this new position |