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

◆ GetSpeedometer() [1/2]

float Transport::GetSpeedometer ( )
inlineprotected

Returns the current speed of the vehicle in km/h.

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

44 {
45 vector transform[4];
46 GetTransform(transform);
47
48 float velocity = GetVelocity(this).InvMultiply3(transform)[2];
49 return velocity * 3.6;
50 }
proto vector InvMultiply3(vector mat[3])
Invert-transforms vector.
proto native vector GetVelocity(notnull IEntity ent)
Returns linear velocity.

Перекрестные ссылки GetVelocity() и vector::InvMultiply3().

Используется в GetSpeedometerAbsolute().