Skip to content

Instantly share code, notes, and snippets.

@Vercidium
Last active May 6, 2019 04:29
Show Gist options
  • Save Vercidium/446a640395e1d420e69bac3a6f63bede to your computer and use it in GitHub Desktop.
Save Vercidium/446a640395e1d420e69bac3a6f63bede to your computer and use it in GitHub Desktop.
Arm Bending
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