FRandomStream::VRandCone

Syntax

FVector VRandCone
(
    FVector const & Dir,
    float ConeHalfAngleRad
) 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

ConeHalfAngleRad

Half-angle of cone, in radians.

References

Module

Core

Header

Runtime/Core/Public/Math/RandomStream.h