Thin Polygon Physics Problem

  • Hey,

    any object with physics behaviour is falling through this thin horizontal shape, which has physics behaviour too.

    <img src="http://dl.dropbox.com/u/54216429/bug.png" border="0" />

    u got an idea to fix this?

  • Can you post your .capx?

  • dl.dropbox.com/u/54216429/phx.capx

    u need the dropndrag behaviour to test it.

  • well, its not a bug in the physics. i'll try to solute the problem through impulses.

    regards :)

  • just cant find a solution for the problem. <img src="smileys/smiley6.gif" border="0" align="middle">

    anyone has an idea to fix the fallthrough bug on the left stone in this project?

    you need the latest version of the drag/drop plugin from here to open the project.

    thanks!

  • The left stone doesn't fall through for me, do I need to do anything to reproduce the problem?

  • yes, you should move the left stone slowly along the bough, to the left side. u can drag it only exactly clicking over the bough.

    i know there are some other bugs, especially because of the shape of the bough, but this is the one that makes no sense for me.

  • It probably falls through because moving physics objects by events or other behaviors forces Construct 2 to "teleport" the physics object in the physics world, causing it to skip collisions. You have to do everything with the Physics actions (setting forces, impulses etc.) for it to work correctly.

    Further reading: see Physics in Construct 2: the basics ("Manual movement & other behaviors").

  • i will try this again with forces, but there is one position on the left where it really looks like a bug. as you can see, the bough stops turning or moving while dragging a stone. i did this for debugging purposes.

    and when u drop the stone cleanly over the bough more left, over the second polygon shape point, the stone is being "turned" somehow and falls right trough.

    maybe someone here can give me more tips on how to solute this special stuff. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • could you tell me, which value to enter for "force" inside the "force to apply" window? i cant find any description for this and what to put inside this textfield.

  • Advanced physic tutorial.

    A force is a number. At worse, trial and error starting around 10 and tweak the value until you're satisfied with it.

  • so it is kind of "force strenght". thanks, this helps a lot <img src="smileys/smiley1.gif" border="0" align="middle" />

  • so, i've updated the project with forces. it works with much less bugs now, but the strange falling through the left side of the bough still appears. you can test it here.

    it look like there is an invisible hole inside the polygon. just drag the left stone exactly along the bough, to the left side. you will see it is falling down before the end of it.

    any ideas to fix this appreciated <img src="smileys/smiley1.gif" border="0" align="middle">

  • Read Ashley's post, its outlining the reason its not working perfectly.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • thanks, but this outline does not help me going on that problem, since the actual version doesnt teleport objects anymore.

    you got a real suggestion to fix? please give the capx a try to solute <img src="smileys/smiley1.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)