URandomVector::SetRandomVector

Set a random vector value independently of the sample position.

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss