Navigation
Unreal Engine C++ API Reference > Runtime > Core > Math > FRandomStream > VRandCone
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Math/RandomStream.h |
Include | #include "Math/RandomStream.h" |
FVector VRandCone
&40;
FVector const & Dir,
float HorizontalConeHalfAngleRad,
float VerticalConeHalfAngleRad
&41; const
Remarks
Returns a random unit vector, uniformly distributed, within the specified cone. Normalized vector within the specified cone.
Parameters
Name | Description |
---|---|
Dir | The center direction of the cone |
HorizontalConeHalfAngleRad | Horizontal half-angle of cone, in radians. |
VerticalConeHalfAngleRad | Vertical half-angle of cone, in radians. |