Garry's Mod Wiki

navmesh.GetGroundHeight

navmesh.GetGroundHeight

number, Vector navmesh.GetGroundHeight( Vector pos )

Description

Finds the closest standable ground at, above, or below the provided position.

The ground must have at least 32 units of empty space above it to be considered by this function, unless 16 layers are tested without finding valid ground.

Arguments

1 Vector pos
Position to find the closest ground for.

Returns

1 number
The height of the ground layer.
2 Vector
The normal of the ground layer.

Special Pages


Wikis

?

Render Time: 67ms

DB GetPage 48
Generate Html 5
SaveChanges (1) 7
Render Body 0
Render Sidebar 6