Gameplay::getAngleBetween2dVectors

From RAGE Multiplayer Wiki
Revision as of 12:05, 29 April 2024 by Shr0x (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax

Gets the angle in degrees between 2 given points

Required Params

  • x1: float
  • y1: float
  • x2: float
  • y2: float

Return value

  • float

Syntax

mp.game.gameplay.getAngleBetween2dVectors(x1, y1, x2, y2);

Example

//todo


See also