Hello, I'm newbie in box2D, i've learn box2D for a month already....
Now, i want to make a simple game...And i make angry bird as the reference...
The problem i met is at the collision detection for glass item or wood item that easily destroyed after being hit by
the bird with some big impulse...
When i check the bird hit the glass wall, i make a recheck at the begin contact, and send a boolean back
to the function before WorldStep
The problem is, when i want to remove the body, there're a little delay, so the bird still can bounce while in the real game
the bird can't bounce anymore after break the glass ...
Simply said that, the bird goes through the glass if the glass broken, but mine the bird will bounce even the glass broken, this was
caused by the delay created when destroying the body...I have set the bird isBullet properties to true, and i have locate the function to destroy the body properly before the World Step....
Sorry for my bad english grammar, but i really need help about this, cause i already stuck for two days at these problem...
I've also test using post-solve ,pre-solve, and try another technique by changing the body position immediatelly or making the body become a sensor...but still a delay left, and make the bird bounce....
Can anybody give me some solution ?
Now, i want to make a simple game...And i make angry bird as the reference...
The problem i met is at the collision detection for glass item or wood item that easily destroyed after being hit by
the bird with some big impulse...
When i check the bird hit the glass wall, i make a recheck at the begin contact, and send a boolean back
to the function before WorldStep
The problem is, when i want to remove the body, there're a little delay, so the bird still can bounce while in the real game
the bird can't bounce anymore after break the glass ...
Simply said that, the bird goes through the glass if the glass broken, but mine the bird will bounce even the glass broken, this was
caused by the delay created when destroying the body...I have set the bird isBullet properties to true, and i have locate the function to destroy the body properly before the World Step....
Sorry for my bad english grammar, but i really need help about this, cause i already stuck for two days at these problem...
I've also test using post-solve ,pre-solve, and try another technique by changing the body position immediatelly or making the body become a sensor...but still a delay left, and make the bird bounce....
Can anybody give me some solution ?