How to know when MultiGrab is grabbing?

Official forum for the Chipmunk2D Physics Library.

How to know when MultiGrab is grabbing?

Postby n8o » Mon Aug 06, 2012 12:55 am

I'd like to give my objects some kind of highlight when being grabbed by the multigrabber, but I can't find a way to know when a grab is happening. What have I missed?
n8o
 
Posts: 3
Joined: Mon Aug 06, 2012 12:49 am

Re: How to know when MultiGrab is grabbing?

Postby slembcke » Mon Aug 06, 2012 9:12 am

So that wasn't a feature that I had originally thought of. The version in Git will return true/false from beginLocation if an object was grabbed, but there isn't a way list all the shapes/bodies that are grabbed. I was thinking about how that would be useful the other day, but haven't gotten around to adding it (and more importantly, testing it) yet.

I'm on vacation this week, but I'm leaving myself a TODO email to look into that when I get back home.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: How to know when MultiGrab is grabbing?

Postby n8o » Tue Aug 07, 2012 1:07 am

Ok, thanks for the update.
n8o
 
Posts: 3
Joined: Mon Aug 06, 2012 12:49 am


Return to Chipmunk2D Physics

Who is online

Users browsing this forum: No registered users and 1 guest