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

◆ Bobbing()

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

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

1602 {
1603 //Prevent division by 0
1604 if ( period == 0 )
1605 period = 1;
1606
1607 elapsedTime /= period;
1608
1609 float cycle;
1610 cycle += elapsedTime;
1611 cycle = FModulus(cycle, 360);
1612 cycle = Math.Sin(cycle) * amplitude;
1613
1614 return cycle;
1615 }
static float FModulus(float x, float y)
Определения MiscGameplayFunctions.c:1618
Определения EnMath.c:7
static proto float Sin(float angle)
Returns sinus of angle in radians.

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