DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Bobbing()

static float Bobbing ( float period,
float amplitude,
float elapsedTime )
staticprotected

См. определение в файле MiscGameplayFunctions.c строка 1747

1748 {
1749 //Prevent division by 0
1750 if ( period == 0 )
1751 period = 1;
1752
1753 elapsedTime /= period;
1754
1755 float cycle;
1756 cycle += elapsedTime;
1757 cycle = FModulus(cycle, 360);
1758 cycle = Math.Sin(cycle) * amplitude;
1759
1760 return cycle;
1761 }
static float FModulus(float x, float y)
Определения MiscGameplayFunctions.c:1764
Определения EnMath.c:7
static proto float Sin(float angle)
Returns sinus of angle in radians.

Перекрестные ссылки FModulus() и Math::Sin().