Is Within Cone
PureIsWithinConeTests 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
| Name | Type | Default | Description |
|---|---|---|---|
| Origin | FVector | — | Origin parameter |
| Direction | FVector | — | Direction parameter |
| TestPoint | FVector | — | TestPoint parameter |
| ConeHalfAngleDegrees | float | — | ConeHalfAngleDegrees parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | bool | ReturnValue 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.