Does LÖVE 0.9+ support bezier curves?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Ratchet
Citizen
Posts: 67
Joined: Mon Apr 08, 2013 10:32 am

Does LÖVE 0.9+ support bezier curves?

Post by Ratchet »

This thread says since 0.9 LÖVE supports bezier... How?

I want to draw bezier curves and want to place images along the curves.
macOS 10.14 Mojave | LÖVE 11.2
User avatar
Guard13007
Party member
Posts: 132
Joined: Sat Oct 25, 2014 3:42 am
Location: Internet, USA
Contact:

Re: Does LÖVE 0.9+ support bezier curves?

Post by Guard13007 »

From the wiki: https://love2d.org/wiki/love.math.newBezierCurve

Next time, try searching a little first. ;)
User avatar
Ratchet
Citizen
Posts: 67
Joined: Mon Apr 08, 2013 10:32 am

Re: Does LÖVE 0.9+ support bezier curves?

Post by Ratchet »

Of cause I searched... that's how I get that link to the thread ;)
But I always searched in love.graphics because I want to draw the bezier :rofl:
Found a good sample now.
macOS 10.14 Mojave | LÖVE 11.2
User avatar
Guard13007
Party member
Posts: 132
Joined: Sat Oct 25, 2014 3:42 am
Location: Internet, USA
Contact:

Re: Does LÖVE 0.9+ support bezier curves?

Post by Guard13007 »

I'm sorry if this is rude, but you didn't really search that far, did you? I can understand expecting it to be the graphics module since that's what you want to use it for, but I'm saying that your reaction to not finding it there should've been to search the wiki or do a google search, then come to the forums.

Just something to think about next time. Honestly, I'm just trying to help, please don't take this the wrong way.
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: Does LÖVE 0.9+ support bezier curves?

Post by Positive07 »

Guard13007 wrote:-snip-
Who cares if he didnt search that much? You should be a little bit friendlier, and if you dont wanna answer (because the question is stupid or whatever), leave it there... Dont be aggressive. Anyway issue solved, let's move on!
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
User avatar
Guard13007
Party member
Posts: 132
Joined: Sat Oct 25, 2014 3:42 am
Location: Internet, USA
Contact:

Re: Does LÖVE 0.9+ support bezier curves?

Post by Guard13007 »

Positive07 wrote:Who cares if he didnt search that much? You should be a little bit friendlier, and if you dont wanna answer (because the question is stupid or whatever), leave it there... Dont be aggressive. Anyway issue solved, let's move on!
I'm trying to make the point that one shouldn't just give up and ask for help when they hit the first snag, and put a little more effort in. Like I said, sometimes people take it the wrong way, but I'm just trying to help. I state things matter-of-factly, and that can seem aggressive, but I don't mean to be. I apologize if I made anyone upset with that reply..or this one.
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: Does LÖVE 0.9+ support bezier curves?

Post by Ref »

Ratchet wrote:This thread says since 0.9 LÖVE supports bezier... How?

I want to draw bezier curves and want to place images along the curves.
Not sure this is what you want the Bezier curves for but I prefer to use Catmull splines for animation paths.
I find they have two advantages (for me):
- better control of path generated
- ability of having uniform step sizes between control point for smooth movement
If this is what you are looking for.
Best!
Attachments
CatMullPath.love
car on moveable path
(5.31 KiB) Downloaded 68 times
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 59 guests