Entertainment and Interactive Software Development

peruvianwageslaveInternet and Web Development

Feb 5, 2013 (4 years and 9 months ago)

174 views

Entertainment and Interactive
Software Development

Chipmunk physics engine

Chipmunk


Chipmunk is a ruby gem.


It will allow us to extend
Gosu

with a
functional physics framework.


Check
chipmunkintroduction.zip
for
an introductory
Netbeans

project

Reference


A complete reference to all Chipmunk classes
is available here:


http://code.google.com/p/chipmunk
-
physics/source/browse/trunk/ruby/doc_dum
my.rb


This page will henceforth become very
important.

In the first chipmunk example


We have an arrow in space which falls to a
floor. This gives us an idea of all the different
options available.


Chipmunkintroduction2.zip
contains an example which uses a moon and
rotating objects.

Modify your previous game


To use chipmunk to handle collisions and
scoring.


Note how collisions between
Polys

are
handled.


Some collision implementations are buggy.
We will attempt to work within Chipmunk
limitations