Index  

trap_InPVS

Description

Checks if a point exists in the Potential Visibility Set of an another point.

Prototype

    qboolean trap_InPVS(
        const vec3_t p1,
        const vec3_t p2
    );

Parameters

Remarks

Two points can return true, but not be visible to each other due to detail brushes, curves, etc.
Normally used to test if two entities can potentially see each other, point1 would be the currentOrigin of the first entitiy and point2 the currentOrigin of the second entity.
This function relies on the Potentially Visible Set, and areaportal data generated during the BSP compiling of a map.

Return value

Returns qtrue if point1 can _potentially_ see point2.
A return value of qfalse guarantees that the points can not see each other.

See also

trap_InPVSIgnorePortals

Author(s)

FonFon


QuakeIII trap calls reference