Garry's Mod Wiki

Entity:NearestPoint

Vector Entity:NearestPoint( Vector position )

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

1 Vector position
The vector to start the intersection from.

Returns

1 Vector
The nearest hit point of the entity's bounding box in world coordinates.

Page Links


Special Pages


Wikis

?

Render Time: 25ms

Session 0
DB GetPage 3
Generate Html 3
SaveChanges 11
Render Body 0
Render Sidebar 6