FRandomStream::VRandCone

Syntax

FVector VRandCone
(
    FVector const & Dir,
    float HorizontalConeHalfAngleRad,
    float VerticalConeHalfAngleRad
) const

Remarks

Returns a random unit vector, uniformly distributed, within the specified cone.

Returns

Normalized vector within the specified cone.

Parameters

Parameter

Description

Dir

The center direction of the cone

HorizontalConeHalfAngleRad

Horizontal half-angle of cone, in radians.

VerticalConeHalfAngleRad

Vertical half-angle of cone, in radians.

References

Module

Core

Header

Runtime/Core/Public/Math/RandomStream.h