Is Within Cone

Pure
IsWithinCone

Tests if a point falls within a cone defined by an origin, direction, and half-angle.

Type: Pure (no side effects)
Category: Fortuna|Vector & Transform
Keywords: vector & transform

Inputs

NameTypeDefaultDescription
OriginFVectorOrigin parameter
DirectionFVectorDirection parameter
TestPointFVectorTestPoint parameter
ConeHalfAngleDegreesfloatConeHalfAngleDegrees parameter

Outputs

NameTypeDescription
ReturnValueboolReturnValue output

Example Use Cases

Example 1

Check if an enemy is within a flashlight beam.

Example 2

Determine if a target is within a sensor's field of view.