How to know when MultiGrab is grabbing?

Official forum for the Chipmunk2D Physics Library.
Post Reply
n8o
Posts: 3
Joined: Mon Aug 06, 2012 12:49 am
Contact:

How to know when MultiGrab is grabbing?

Post by n8o »

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?
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: How to know when MultiGrab is grabbing?

Post by slembcke »

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/
n8o
Posts: 3
Joined: Mon Aug 06, 2012 12:49 am
Contact:

Re: How to know when MultiGrab is grabbing?

Post by n8o »

Ok, thanks for the update.
Post Reply

Who is online

Users browsing this forum: Heise IT-Markt [Crawler] and 3 guests