Method | Description | |
---|---|---|
ShakeIfShaking ( Vector2 position, |
||
StartShaking ( float magnitude, float duration ) : void |
Method | Description | |
---|---|---|
NextFloat ( ) : float |
Helper to generate a random float in the range of [-1, 1].
|
public static ShakeIfShaking ( Vector2 position, |
||
position | Vector2 | |
gameTime | ||
return | Vector2 |
public static StartShaking ( float magnitude, float duration ) : void | ||
magnitude | float | |
duration | float | |
return | void |