Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h |
Include |
#include "Kismet/KismetMathLibrary.h" |
static FVector RandomUnitVectorInConeInDegreesFromStream
(
const FVector & ConeDir,
float ConeHalfAngleInDegrees,
const FRandomStream & Stream
)
Returns a random vector with length of 1, within the specified cone, with uniform random distribution.
Parameter |
Description |
---|---|
ConeDir |
The base "center" direction of the cone. |
ConeHalfAngleInDegrees |
The half-angle of the cone (from ConeDir to edge), in degrees. |
Stream |
The random stream from which to obtain the vector. |