[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
Chipmunk Physics • View topic - Trouble getting a physics body using touch events on ipad

Trouble getting a physics body using touch events on ipad

Share your projects and Chipmunk enhancements.

Trouble getting a physics body using touch events on ipad

Postby 21species » Wed Apr 24, 2013 11:01 am

21species
 
Posts: 2
Joined: Thu Apr 04, 2013 6:35 am

Re: Trouble getting a physics body using touch events on ipa

Postby slembcke » Wed Apr 24, 2013 11:48 am

Hmm. I'm not very familiar with the Cocos-JS bindings. Riq also made the JS bindings for Chipmunk to go along with that, so I don't have a lot of experience what that either.

I think the best advice I can give at this point is to put a breakpoint on cpSpacePointQueryFirst, step through it and see if the return value seems like a valid shape. It sounds like the EXC_BAD_ACCESS is happening when you are trying to dereference a invalid shape pointer. I'm not exactly certain how Chipmunk could return such a wacky value though unless the entire space had already been freed.
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: Trouble getting a physics body using touch events on ipa

Postby 21species » Wed Apr 24, 2013 1:21 pm

Many Thanks for the tip . I did try that and it was giving all the values but was quite unclear wt was going wrong.

What would be really great and helpful is if Riq could do just a quick sample of a single physics circle object with a drag using a mouse joint on touch down .. i am sure that'll solve the issue .. the cocos 2dx chipmunk samples dont have mouse drag function .. hence searching all over.

hope its not too much to ask ??! :?

Cheers and thanx again !!
21species
 
Posts: 2
Joined: Thu Apr 04, 2013 6:35 am


Return to Community Creations

Who is online

Users browsing this forum: No registered users and 0 guests

cron