Entity::distSquared

From RAGE Multiplayer Wiki
Revision as of 22:08, 19 January 2018 by Mcfloy (talk | contribs) (Created page with "Function that gets the squared distance between two entities. ==Parameters== * '''position''': {{RageType|Vector3}} ==Syntax== {{Shared}} <syntaxhighlight lang="javascript">...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function that gets the squared distance between two entities.

Parameters

  • position: Vector3

Syntax

Shared
entity.distSquared(entity2.position);