Re: collision callback
jon klein <[email protected]> Mon, 23 May 2005 10:20:01 -0400
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
On May 20, 2005, at 5:26 AM, Peter Frisch wrote: > Hi, > > is there a way to get feedback if an object hits > another one? Something like a callback function on > collision? > > Or maybe someone has another idea how to solve my > problem: I try to extend the SuperWalker demo and what > any Creature does when the "foot" hits the floor is to > increse the force to support its body weight. So I > need to know somehow if a "limb" touches the floor. It > would be perfect if I also knew if a limb hits the > body or another limb or an obstacle, but that would be > next ... > > Also great would be to know the current orientation of > each limb. > > Any help is like always cordially appreciated. What kind of feedback are you trying to get? If you just want to know when two objects collide, you can just add a collision handler: http://www.spiderland.org/breve/breve_docs/docs/collision_callback.html At the moment it's not possible to get other information about the collision, such as exact collision points, etc. To get the current orientation of a limb (a subclass of Mobile), use the Mobile method "get-rotation". - jon klein _______________________________________________ breve mailing list [email protected] http://lists.spiderland.org/mailman/listinfo/breve