PointOnSide

From ZDoom Wiki
Jump to navigation Jump to search
Note: This feature is for ZScript only.

SecPlane

native int PointOnSide(Vector3 pos) const

Usage

Determines which side of the SecPlane the given point resides on. The direction the plane's normal points is considered the front.

Parameters

  • pos - The absolute map coordinate to check against.

Return Value

Returns -1 if behind the SecPlane, 1 if in front of it, or 0 if on it.

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.