Last active
May 6, 2019 04:29
-
-
Save Vercidium/446a640395e1d420e69bac3a6f63bede to your computer and use it in GitHub Desktop.
Arm Bending
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vector3 GetPoint() | |
{ | |
// Generate the point | |
... | |
// Calculate arm scaling | |
... | |
// Rotate the point around the galaxy proportional to its magnitude | |
v *= Matrix4.CreateRotationY(-v.Magnitude * rotationStrength); | |
v.Y = 0; | |
return v; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment