Re: [Haskell-cafe] Netwire bouncing ball

2013-07-11 Thread Ertugrul Söylemez
Just wrote: > Thank you very much, this works as expected and is easy to understand. > However a complete example of a bouncing ball would be super awesome > since I have trouble to get it work with integralLim_. > > My first try was to use object_ from Control.Wire.Prefab.Move but got > stuck ve

Re: [Haskell-cafe] Netwire bouncing ball

2013-07-11 Thread Oliver Charles
On 07/11/2013 05:52 PM, Just wrote: > On 07/10/2013 11:44 PM, Ertugrul Söylemez wrote: >> A very simple way to do this is to use integralLim_ instead of >> integral_. It allows the ball itself to handle the bouncing. A less >> invasive way (i.e. you can add it to your example) is to use the (-->)

Re: [Haskell-cafe] Netwire bouncing ball

2013-07-11 Thread Just
On 07/10/2013 11:44 PM, Ertugrul Söylemez wrote: A very simple way to do this is to use integralLim_ instead of integral_. It allows the ball itself to handle the bouncing. A less invasive way (i.e. you can add it to your example) is to use the (-->) combinator: ball = integral_ 0 . integ

Re: [Haskell-cafe] Netwire bouncing ball

2013-07-10 Thread Ertugrul Söylemez
Just wrote: > I'm trying to get a grasp of netwire by implementing a bouncing ball > simulation and I'm failing. > The ball starts from the ground with a given velocity and when hitting > the ground the wire inhibits successfully. Now I'm kinda stuck. > > How can I make the ball bounce? A very s

Re: [Haskell-cafe] Netwire bouncing ball

2013-07-10 Thread Jason Dagit
On Wed, Jul 10, 2013 at 2:15 PM, Just wrote: > Hello, > > I'm trying to get a grasp of netwire by implementing a bouncing ball > simulation and I'm failing. > The ball starts from the ground with a given velocity and when hitting the > ground the wire inhibits successfully. Now I'm kinda stuck. I