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

◆ Bobbing()

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

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

1615 {
1616 //Prevent division by 0
1617 if ( period == 0 )
1618 period = 1;
1619
1620 elapsedTime /= period;
1621
1622 float cycle;
1623 cycle += elapsedTime;
1624 cycle = FModulus(cycle, 360);
1625 cycle = Math.Sin(cycle) * amplitude;
1626
1627 return cycle;
1628 }
static float FModulus(float x, float y)
Определения MiscGameplayFunctions.c:1631
Определения EnMath.c:7
static proto float Sin(float angle)
Returns sinus of angle in radians.

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