Aug
14
2011
14
2011
Function: CubicBezier (2D)

Converted function from this source to Unity. Drawing bezier curves (2D).
function CubicBezier(a1:Vector3,a2:Vector3,c1:Vector3,c2:Vector3,steps:float)
Download source:
CubicBezier.unitypackage
Related Posts
4 Comments + Add Comment
Leave a comment
Recent posts
- Adding Real World Location to Ice Fishing Prototype
- [web tool] Image Channel Inspector : AlphaScope
- Editor Tool: Smart Recompile (don’t recompile if edit comments)
- Editor Tool: Scene Size Analyzer
- LudumDare 60: Old Tech
- uBasic Scripting Language for Unity
- GreaseMonkey+Editor Plugin: 1-Click Copy script from ChatGPT (Web) to Unity Editor (as script)
- Editor Tool: Property Watcher
- .unityignore : Hide files from Project window
- PostBuild Script to Create Single exe Standalone File
- Game Loop Designer
- Favorites in PackageManager
Recent Comments
Support my work at Bags.fm:
Coin:
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
Subscribe to Blog via Email
Tag Cloud
2d
3D
AI
algorithm
android
asset
build
color
custom
demo
editor
effect
fake
free
game
generator
greasemonkey
indie
javascript
light
line
ludumdare
ludum dare
mesh
paint
particles
physics
plugin
proto
prototype
script
sea
shader
shadow
sprite
terrain
texture
tool
tutorial
ui
unity
vertex
visibility
water
waves
An article by












Bezier/spline library script:
http://forum.unity3d.com/threads/32954-Waypoints-and-constant-variable-speed-problems?p=213942#post213942
Updated Unity Bézier curve – Now in easy to use Prefab form:
http://www.frictionpointstudios.com/blog/2010/5/20/updated-unity-bezier-curve-now-in-easy-to-use-prefab-form.html
CatMullRom,
http://wiki.unity3d.com/index.php?title=Interpolate
and how to use it,
http://kylehalladay.com/blog/tutorial/2014/03/30/Placing-Objects-On-A-Spline.html
A bezier spline solution for Unity 3D with some utility functions (like travelling the spline with constant speed/time)
https://github.com/yasirkula/UnityBezierSolution