Метод | Описание | |
---|---|---|
ShakeIfShaking ( Vector2 position, |
||
StartShaking ( float magnitude, float duration ) : void |
Метод | Описание | |
---|---|---|
NextFloat ( ) : float |
Helper to generate a random float in the range of [-1, 1].
|
public static ShakeIfShaking ( Vector2 position, |
||
position | Vector2 | |
gameTime | ||
Результат | Vector2 |
public static StartShaking ( float magnitude, float duration ) : void | ||
magnitude | float | |
duration | float | |
Результат | void |