Advertisement
Guest User

Untitled

a guest
Feb 4th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. public void MovePoint(int i, Vector2 pos)
  2. {
  3. if (isBezierCircle) {
  4. if ((i % 3 == 0)) // only anchor points
  5. {
  6. //for two segments
  7. //index points[LoopIndex(i + 1)] and points[LoopIndex(i - 1)] represent control points
  8. var distanceFromAnchor = 1.314684396f * (0.5f * (points[i] - points[LoopIndex(i + 3)])).magnitude;
  9.  
  10. }
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement