Collision Detection

Andreas Fedrizzi <[email protected]> Fri, 22 Jul 2005 14:01:11 +0200
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
You will not see this in a MIME-aware mail reader.
--===============0425093104==
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

Hi

Thanks to Thies Pfeiffer for the quick advice regarding the color problem!

I have a further question that concerns collision handling. In my opinion t=
he code presented in the html manual is not correct.

In my model I have a sphere (which is a link object) in a PhysicalControl m=
odel. The sphere starts above a plain which is a stationary object. During =
simulation it falls down and when it collides with the plane it should be l=
ifted automatically to the starting position and fall down again.

Here is the sphere-code that I wrote according to the html tutorial:

+to init:
        ...
        self handle-collisions with-type "Plain" with-method "up-again".
        ...

+to up-again Plain plainObject:
	self move to (0, 10, 0).

Unfortunately I get an error that tells me that there is a parse error in t=
he line of the method declaration of "up-again" near the ":". I haven=E2=80=
=99t found a sample model that uses collisions to see what is wrong and hav=
e checked the code several times. Perhaps someone can help me?

Greetings
Andreas Fedrizzi
Technical University Munich
--=20

--===============0425093104==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
breve mailing list
[email protected]
http://lists.spiderland.org/mailman/listinfo/breve

--===============0425093104==--