Re: [Chicken-users] a new egg: chickmunk

2012-07-26 Thread Christian Kellermann
* Kristian Lein-Mathisen kristianl...@gmail.com [120726 01:19]:
 Hi guys,

 I just though I'd let you know I've created an egg that binds Chicken to
 the Chipmunk 2D physics library. It's almost complete and is available on
 github https://github.com/kristianlm/chickmunk.

 Chickmunk https://github.com/kristianlm/chickmunk should provide bindings
 to all C functions, so all parts of Chipmunk
 http://chipmunk-physics.net/(bodies, shapes, constraints) should be
 accessible. It also adds:

- properties: shape-properties, shape-properties-set!, body-properties
etc
- lambda callbacks on query-point, query-segment and for-each-body/shape
- nodes: space-nodes and nodes-space

 ;; Create a new Chipmunk space with a circle and a line-segment
 (define space
   (nodes-space
 `(space ()
 (body ()
   (circle (radius 0.1)))
 (body ((static 1))
   (segment (endpoints ((-1 -1)
( 1 -1


 Unfortunately, I won't be able to work on this anymore due to my work
 situation. If there is interest in releasing this incomplete egg to the
 repository, please let me know!

This is awesome! I will definitely play with it. This could be an
ingredient for some interesting doodle puzzle games!

Cheers,

Christian

--
9 out of 10 voices in my head say, that I am crazy,
one is humming.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] a new egg: chickmunk

2012-07-26 Thread Kristian Lein-Mathisen
Hey Shawn,

Physics engines are definitely fun to play around with! If you wanna
quickly see what they can do, both Box2D and Chipmunk have interactive
demos along with their source code.

I had prior experience with Box2D and I actually started out trying to
create Chicken bindings for it. I wanted things to be as automatic as
possible, so I went for chicken-bind and tinyclos. It quickly turned out to
be a little cumbersome so I switched to Chipmunk. The interface was easier
to bind to. However, we loose a couple fancy features like
bulletshttp://www.box2d.org/manual.html#_Toc258082973
.

K.

On Thu, Jul 26, 2012 at 5:41 AM, Shawn Rutledge
shawn.t.rutle...@gmail.comwrote:

 Cool!

 I haven't done any messing around with physics engines, so don't know
 much about them but I'm curious if there's a reason you went with
 Chipmunk instead of Box2D?

 On 26 July 2012 00:46, Kristian Lein-Mathisen kristianl...@gmail.com
 wrote:
 
  Hi guys,
 
  I just though I'd let you know I've created an egg that binds Chicken to
 the
  Chipmunk 2D physics library. It's almost complete and is available on
  github.
 
  Chickmunk should provide bindings to all C functions, so all parts of
  Chipmunk (bodies, shapes, constraints) should be accessible. It also
 adds:
 
  properties: shape-properties, shape-properties-set!, body-properties etc
  lambda callbacks on query-point, query-segment and for-each-body/shape
  nodes: space-nodes and nodes-space
 
  ;; Create a new Chipmunk space with a circle and a line-segment
  (define space
(nodes-space
  `(space ()
  (body ()
(circle (radius 0.1)))
  (body ((static 1))
(segment (endpoints ((-1 -1)
 ( 1 -1
 
 
  Unfortunately, I won't be able to work on this anymore due to my work
  situation. If there is interest in releasing this incomplete egg to the
  repository, please let me know!
 
  K.
 
  ___
  Chicken-users mailing list
  Chicken-users@nongnu.org
  https://lists.nongnu.org/mailman/listinfo/chicken-users
 

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] a new egg: chickmunk

2012-07-26 Thread Kristian Lein-Mathisen
Great, I will add some of the tools I've been using
to the repo. They're incomplete as well, but they
may help getting you started.

K.

On Thu, Jul 26, 2012 at 12:23 AM, Christian Kellermann
ck...@pestilenz.orgwrote:

 * Kristian Lein-Mathisen kristianl...@gmail.com [120726 01:19]:
  Hi guys,
 
  I just though I'd let you know I've created an egg that binds Chicken to
  the Chipmunk 2D physics library. It's almost complete and is available on
  github https://github.com/kristianlm/chickmunk.
 
  Chickmunk https://github.com/kristianlm/chickmunk should provide
 bindings
  to all C functions, so all parts of Chipmunk
  http://chipmunk-physics.net/(bodies, shapes, constraints) should be
  accessible. It also adds:
 
 - properties: shape-properties, shape-properties-set!, body-properties
 etc
 - lambda callbacks on query-point, query-segment and
 for-each-body/shape
 - nodes: space-nodes and nodes-space
 
  ;; Create a new Chipmunk space with a circle and a line-segment
  (define space
(nodes-space
  `(space ()
  (body ()
(circle (radius 0.1)))
  (body ((static 1))
(segment (endpoints ((-1 -1)
 ( 1 -1
 
 
  Unfortunately, I won't be able to work on this anymore due to my work
  situation. If there is interest in releasing this incomplete egg to the
  repository, please let me know!

 This is awesome! I will definitely play with it. This could be an
 ingredient for some interesting doodle puzzle games!

 Cheers,

 Christian

 --
 9 out of 10 voices in my head say, that I am crazy,
 one is humming.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] a new egg: chickmunk

2012-07-25 Thread Kristian Lein-Mathisen
Hi guys,

I just though I'd let you know I've created an egg that binds Chicken to
the Chipmunk 2D physics library. It's almost complete and is available on
github https://github.com/kristianlm/chickmunk.

Chickmunk https://github.com/kristianlm/chickmunk should provide bindings
to all C functions, so all parts of Chipmunk
http://chipmunk-physics.net/(bodies, shapes, constraints) should be
accessible. It also adds:

   - properties: shape-properties, shape-properties-set!, body-properties
   etc
   - lambda callbacks on query-point, query-segment and for-each-body/shape
   - nodes: space-nodes and nodes-space

;; Create a new Chipmunk space with a circle and a line-segment
(define space
  (nodes-space
`(space ()
(body ()
  (circle (radius 0.1)))
(body ((static 1))
  (segment (endpoints ((-1 -1)
   ( 1 -1


Unfortunately, I won't be able to work on this anymore due to my work
situation. If there is interest in releasing this incomplete egg to the
repository, please let me know!

K.
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users