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

◆ Bobbing()

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

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

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

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