EntityDistanceTo2D Method (ISpatial)RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Gets the distance from this instance to the specified ISpatial instance.

Namespace: Rage
Assembly: RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.47.1037.9935)
Syntax

public virtual float DistanceTo2D(
	ISpatial spatialObject
)

Parameters

spatialObject
Type: RageISpatial
The ISpatial to get the distance to.

Return Value

Type: Single
A Single representing the distance from this instance to the specified ISpatial.

Implements

ISpatialDistanceTo2D(ISpatial)
See Also

Reference