Перейти к содержанию

Entity::getSpeedVector

Материал из RAGE MP Wiki Archive
Версия от 18:04, 1 мая 2024; imported>Shr0x (See also)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Relative can be used for getting speed relative to the frame of the vehicle, to determine for example, if you are going in reverse (-y speed) or not (+y speed).

Syntax

<syntaxhighlight lang="javascript">entity.getSpeedVector(relative);</syntaxhighlight>

Required Arguments

  • relative: Boolean

Return value

  • Vector3

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also