Entity/GetBrushPlane

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

Contents

Description

Returns info about given plane of non-nodraw brush model surfaces of the entity's model. Works on worldspawn as well.

WARNING

This only works on entities with brush models.

Arguments

number id

The index of the plane to get info of. Starts from 0.

Returns

Vector

The origin of the plane.

This will be either the first vertex's position (if available) or the plane's normal multiplied by the plane's distance.

Returns

Vector

The normal of the plane.

Returns

number

The "distance" of the plane.

The distance is the dot product of the plane's normal and the point it was initialized with.
Personal tools
Navigation