Skip to content

Render Bezier Curve and create a simple animation in Unity

Notifications You must be signed in to change notification settings

wjw12/Unity-Bezier-Curve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bessel Spline Renderer for Unity

For rendering bessel splines. The effect is as follow.

Usage: Add BesselSpline.cs to any GameObject and assign the list of control points in the inspector. The control points are drawn with sphere gizmos so you can visualize them in the editor window.

As an experiment, I created LineGradient.cs to control an animated color gradient moving on the spline. A changing color gradient can be assigned. The results are not satisfactory, though.

------------- Edit -------------

Note

I made a serious mistake - the curve should be called B¨¦zier curve (https://en.wikipedia.org/wiki/B%C3%A9zier_curve), not to be confused with Bessel curve (a rarely-used mathematical term)

About

Render Bezier Curve and create a simple animation in Unity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages