Re: Collision Detection
Marc Szymanski <[email protected]> Fri, 22 Jul 2005 14:16:20 +0200
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
Hi, I never tried to use a collsion handler, but try: + to up-again plain plainObject (object): self move to (0, 10, 0). The syntax in the documentation (sct. 6.2) doesn't look like the regular = steve=20 syntax. Maybe it's different for handler methods, but I can't imagine tha= t. Gru=C3=9F, Marc. On Friday, 22. July 2005 14:01, Andreas Fedrizzi wrote: > Hi > > Thanks to Thies Pfeiffer for the quick advice regarding the color probl= em! > > I have a further question that concerns collision handling. In my opini= on > the code presented in the html manual is not correct. > > In my model I have a sphere (which is a link object) in a PhysicalContr= ol > model. The sphere starts above a plain which is a stationary object. Du= ring > simulation it falls down and when it collides with the plane it should = be > lifted 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 > the line of the method declaration of "up-again" near the ":". I haven=C3= =A2=C2=80=C2=99t > found a sample model that uses collisions to see what is wrong and have > checked the code several times. Perhaps someone can help me? > > Greetings > Andreas Fedrizzi > Technical University Munich --=20 -------------------------------------------------------------------------= - Dipl.-Inform. Marc Szymanski Institute for Process Control and Robotics(IPR), Universit=C3=A4t Karlsru= he(TH) Kaiserstr. 12, D-76128 Karlsruhe, Germany Phone: +49 721 608 6694, Fax: +49 721 608 7141 WWW http://wwwipr.ira.uka.de/~szymansk _______________________________________________ breve mailing list [email protected] http://lists.spiderland.org/mailman/listinfo/breve