Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void MovePoint(int i, Vector2 pos)
- {
- if (isBezierCircle) {
- if ((i % 3 == 0)) // only anchor points
- {
- //for two segments
- //index points[LoopIndex(i + 1)] and points[LoopIndex(i - 1)] represent control points
- var distanceFromAnchor = 1.314684396f * (0.5f * (points[i] - points[LoopIndex(i + 3)])).magnitude;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement