GLBasic forum

Main forum => GLBasic - en => Topic started by: djtoon on 2010-Sep-19

Title: box2d contact
Post by: djtoon on 2010-Sep-19
did any one expiriance this bug

in windows the collision works for my 2 box's

on the iphone it dosent
it just goes thorw it

any suggestions?
10x
Title: Re: box2d contact
Post by: matchy on 2010-Sep-19
Solution is here:
http://www.glbasic.com/forum/index.php?topic=3561.msg39015#msg39015

Title: Re: box2d contact
Post by: djtoon on 2010-Sep-19
where and how do i add the flag?
did you try it and did it work?
Title: Re: box2d contact
Post by: MrTAToad on 2010-Sep-19
I presume he means adding it to the iPhone compiler options (see the picture).

I dont know whether it works or not as I've never tried box2D on the iPhone

[attachment deleted by admin]
Title: Re: box2d contact
Post by: matchy on 2010-Sep-20
The dude posting the image above is correct.  :P
Title: Re: box2d contact
Post by: djtoon on 2010-Sep-20
well i did it
and then compiled on xcode (should i change threre too?)
and i get adn error on compile and run: EXC_BAD_ACCSESS

what is that?
Title: Re: box2d contact
Post by: MrTAToad on 2010-Sep-20
EXC_BAD_ACCESS happens when a message is sent to an object that has already been released. By the time the error is caught, the call stack is usually gone especially if dealing with multiple threads.

Perhaps posting your code might be of some use ?