Hi,
I have a game with destructable terrain, and everything works fine %99.9 of the time but like the case I attached, my character suddenly jumps to middle of the floor below itself immediately after I recreate the terrain's fixtures after an explosion. Terrain itself has number of fixtures with a chain shapes in them (depending on the number of independent parts terrain is) and I'm recreating the fixtures and the chain shapes every time an explosion happens. Interestingly enough this specific case is fixed if I move the top ellipse shape (b2PolygonShape) of the character up, seperating it from the bottom circle shape. I think this is just random though so separating those shapes won't fix other similar cases.
Why is this happening? Any ideas?
Thank you.
I have a game with destructable terrain, and everything works fine %99.9 of the time but like the case I attached, my character suddenly jumps to middle of the floor below itself immediately after I recreate the terrain's fixtures after an explosion. Terrain itself has number of fixtures with a chain shapes in them (depending on the number of independent parts terrain is) and I'm recreating the fixtures and the chain shapes every time an explosion happens. Interestingly enough this specific case is fixed if I move the top ellipse shape (b2PolygonShape) of the character up, seperating it from the bottom circle shape. I think this is just random though so separating those shapes won't fix other similar cases.
Why is this happening? Any ideas?
Thank you.