Search found 18 matches

by Lightcycler
Sun Jul 02, 2017 1:23 pm
Forum: Games and Creations
Topic: Numeric Solution to the wave equation [plus I need some help]
Replies: 1
Views: 2301

Numeric Solution to the wave equation [plus I need some help]

Hey guys! I wanted to try solving differential equations numerically, and what's better for that task than the wave equation ? Click and drag to create a gauß bell with variable width. However, I have a problem: As soon as the wave hits the boundary, or as soon as I change a single pixel's value(as ...
by Lightcycler
Fri Dec 12, 2014 11:57 pm
Forum: Libraries and Tools
Topic: [Cavity] Simple procedural cave building in Lua!
Replies: 4
Views: 4762

Re: [Cavity] Simple procedural cave building in Lua!

drunken_thor wrote:Really cool work, did you make this with anything in mind?
Thank you :3 Well, I needed a level generator for another project and I thought, hey, make it easy to use. :D

If y'all got some ideas for features, feel free to tell me ^^
by Lightcycler
Fri Dec 12, 2014 4:35 pm
Forum: Libraries and Tools
Topic: [Cavity] Simple procedural cave building in Lua!
Replies: 4
Views: 4762

Re: [Cavity] Simple procedural cave building in Lua!

Thank you ^^ I've updated it and improved some parts.
by Lightcycler
Thu Dec 11, 2014 1:10 am
Forum: Libraries and Tools
Topic: [Cavity] Simple procedural cave building in Lua!
Replies: 4
Views: 4762

[Cavity] Simple procedural cave building in Lua!

Hey folks, the past days I've been working on a small script to build 2d tile based maps that look like caves. (Actually, it's been a few weeks, but only because one in retrospect friggin simple problem kept bugging around.) UPDATES What's new? -one new function: cavity.forge(): which tiles touch th...
by Lightcycler
Sat Dec 06, 2014 11:00 pm
Forum: Libraries and Tools
Topic: Fizz X
Replies: 85
Views: 62490

Re: Fizz X

Great engine, I löve it's simplicity :3 EDIT: I removed my problem, I was too dense to see it. I forgot the "fizz." in front of the function. Jeez.
by Lightcycler
Thu Oct 23, 2014 9:43 am
Forum: Support and Development
Topic: Problem with angles...
Replies: 8
Views: 4992

Re: Problem with angles...

I finally solved the problem, thanks to you two and thanks to this thread: http://love2d.org/forums/viewtopic.php?f=4&t=76710 I expanded the code by adding a scale factor: if(diff>(x*dt))then return current + (x*dt) end With this, I can smoothly change the rotation speed as it suits my taste. Th...
by Lightcycler
Sun Oct 19, 2014 6:25 pm
Forum: Support and Development
Topic: Problem with angles...
Replies: 8
Views: 4992

Re: Problem with angles...

Yes, I actually need the impulse later.
Though I might try to implement the turning by hand and add some turning vector. Hm...
by Lightcycler
Sun Oct 19, 2014 4:08 pm
Forum: Support and Development
Topic: Problem with angles...
Replies: 8
Views: 4992

Re: Problem with angles...

Thank you for your help! So I tried it out but the circle twitches when he tries to align with the mouse (also turned around pi radians) ... And when the angle's too big, it stops and tries to go the other way around. Do you have an idea how to "fix" my approach? Except for the gap it look...
by Lightcycler
Sun Oct 19, 2014 3:24 pm
Forum: Support and Development
Topic: Problem with angles...
Replies: 8
Views: 4992

Re: Problem with angles...

May I ask what Modulo does in this equation? Or do you have a link for a mathematical proof of that concept?
by Lightcycler
Sun Oct 19, 2014 1:20 pm
Forum: Support and Development
Topic: Problem with angles...
Replies: 8
Views: 4992

Problem with angles...

Hey guys, I've got a problem. I have a circle that faces my mouse, and since I want a soft rotation and need the impulse later, I used love.physics fot this task. I have two vectors, one from the circle to the mouse and one "normed" vector. Then I calculate the angle between the two points...