Skip to content

Instantly share code, notes, and snippets.

@Vercidium
Last active May 3, 2019 03:44
Show Gist options
  • Save Vercidium/856be4d89cccd99cef19e5082ce50375 to your computer and use it in GitHub Desktop.
Save Vercidium/856be4d89cccd99cef19e5082ce50375 to your computer and use it in GitHub Desktop.
Vertical Variance
Vector3 position = GetPoint();
position.Y -= heightMagnitude * Math.Sin(position.Magnitude * heightFrequency);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment