URandomVector::SetRandomVector

Set a random vector value independently of the sample position.

Choose your operating system:

Windows

macOS

Linux

References

Module

FieldSystemEngine

Header

/Engine/Source/Runtime/Experimental/FieldSystem/Source/FieldSystemEngine/Public/Field/FieldSystemObjects.h

Include

#include "Field/FieldSystemObjects.h"

Source

/Engine/Source/Runtime/Experimental/FieldSystem/Source/FieldSystemEngine/Private/Field/FieldSystemObjects.cpp

Syntax

URandomVector * SetRandomVector
(
    float Magnitude
)

Remarks

Set a random vector value independently of the sample position. The output is equal to magnitude * random direction

Parameters

Parameter

Description

Magnitude

Magnitude of the random vector field