Entity/NearestPoint

From Garry's Mod
Jump to: navigation, search
 Entity:NearestPoint( )

Description

Performs a Ray OBBox intersection from the given position to the origin of the OBBox with the entity and returns the hit position on the OBBox

Arguments

Vector position

The vector to start the intersection from.

Returns

Vector

The nearest hit point of the entity's bounding box in world coordinates.
Personal tools
Navigation