UnrealScripterAI
Discord ↗
Link Copied to Clipboard
×
"wave simulator"
// Code to simulate waves in a water body for (int i = 0; i < VertexCount; i ) { // Calculate the height of each vertex based on a sine wave equation float SinValue = FMath::Sin(Time i * WaveSpeed) * WaveAmplitude; VertexArray[i].Z = SinValue; }