Skip to content

Commit 5ac4bad

Browse files
committed
Added support for custom normals per bezier point
1 parent 99f3275 commit 5ac4bad

File tree

9 files changed

+647
-197
lines changed

9 files changed

+647
-197
lines changed

Plugins/BezierSolution/BezierPoint.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,15 +306,20 @@ public HandleMode handleMode
306306
}
307307
}
308308

309+
[HideInInspector]
310+
public Vector3 normal = Vector3.up;
311+
[HideInInspector]
312+
public float autoCalculatedNormalAngleOffset = 0f;
313+
309314
[HideInInspector]
310315
public ExtraData extraData;
311316
#pragma warning restore 0649
312317

313318
#if UNITY_EDITOR
314319
[System.NonSerialized]
315-
public BezierSpline Internal_Spline;
320+
internal BezierSpline Internal_Spline;
316321
[System.NonSerialized]
317-
public int Internal_Index;
322+
internal int Internal_Index;
318323
#endif
319324

320325
private void Awake()

0 commit comments

Comments
 (0)