For a long time I wanted to not only lerp my transforms between different positions and rotations but to smoothly interpolate them on a runtime generated bezier. This way the movement would look much smoother and the player/user would not loose their orientation.
Last night I finally started implementing this. I found an almost complete BezierPath-Class for Unity3d by Herman Tulleken from dev.mag.org.za so I started from there and created a BezierWalker Component Script that iterates a transform along the path and a BezierController that actually holds the BezierPath itself.
I also developed an Editor Script that allows editing the Path and control Points on the curve. Since the result is more of an editor experience I only share this screenshot. Let me just state that this was done in one evening. So the stuff is out there for you to get it and make such an editor, walker and controller yourself.
Anyhow I provide the scripts (except the editor script) for you: BezierPath Scripts
Update: Editor Script now also available! Bezier Path Editor Scripts











One Comment
Hello, I found your blog from google. Really great blog. Best Regards
2 Trackbacks/Pingbacks
[...] geht es zum Download von Kai Wegners Bezier Paths. Viel Spaß beim [...]
[...] is an update post. Due to the recent mention of my previous post about my BezierPath Scripts for Unity3D I will now provide the Editor Script, too. So you can start with this package [...]