Re: [Algorithms] Curve generation

 Re: [Algorithms] Curve generation From: Chris Green - 2008-05-10 14:57:05 ```I've used quadratic and cubic bezier curves for this type of effect before. Set the first and last control points to be the endpoints of your motion. For cubic, set the two interior control points to be randomly displaced from the points 1/3 and 2/3 of the way along the line between the two endpoints. When choosing the random displacements for the 2nd and 3rd control points, you can do things like make the magnitude of the displacement proportional to the length of the curve. You can also constrain the curving movement to lie in a plane by forcing one of the control points to lie in the plane defined by the other 3. -----Original Message----- From: gdalgorithms-list-bounces@... [mailto:gdalgorithms-list-bounces@...] On Behalf Of Oliver Charles Sent: Saturday, May 10, 2008 12:25 AM To: Game Development Algorithms Subject: Re: [Algorithms] Curve generation Yea, I think Catmull-Rom would be the fastest to implement - the only thing that you'd have any issues with, is deciding on points - but that's just a circle around the player with an expanding radius (if I understood you right). I think steering behaviours (suggested above) would be cool but... seems a little overkill. - Ollie On Fri, May 9, 2008 at 6:32 PM, Paul at Home wrote: > Catmull-Rom splines have long been my friend for this kind of thing as the > lines generated pass through the control points. The algorithm is fairly > trivial and I'm sure a googling will reveal some code snippets. > Regards, > Paul Johnson. > http://www.rubicondev.com > > > > ----- Original Message ----- > From: Zafar Qamar > To: Game Development Algorithms > Sent: Friday, May 09, 2008 5:26 PM > Subject: [Algorithms] Curve generation > Hi All, > > I'm wanting to create some nice effects for when pickups in a game are > effectively 'picked' up. > Imagine many objects all scattered around over the floor. I want them all to > fly towards the player in weird and wonderful spirals and curves. > Note that the player will be moving. > > Anyone have some neat algorithms/ideas/links for how I may achieve this? > > Cheers > > Zafar > __________________________________________________________ > This mail has been scanned for all known viruses and > delivered through the MessageLabs Virus Control Centre. > > ________________________________ > > ------------------------------------------------------------------------ - > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save \$100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j avaone > > ________________________________ > > _______________________________________________ > GDAlgorithms-list mailing list > GDAlgorithms-list@... > https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-lis t > > > ------------------------------------------------------------------------ - > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save \$100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j avaone > _______________________________________________ > GDAlgorithms-list mailing list > GDAlgorithms-list@... > https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-lis t > ------------------------------------------------------------------------ - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save \$100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j avaone _______________________________________________ GDAlgorithms-list mailing list GDAlgorithms-list@... https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list Archives: http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-lis t ```