stuck with physics behavior

This forum is currently in read-only mode.
From the Asset Store
Simple yet very life-like rag doll made with Physics!
  • Hi everyone,

    I'm new at this board, just playing for 10 days with construct and love it.

    At the moment i'm stuck with physics behavior, and hope someone can help me to get this example working.

    The player green have to push away the gray blocks.

    First block looks if it's working fine but when the blocks are laying still it won't work and you can just fly trough it.

    http://dl.dropbox.com/u/16288442/MoveRock.cap

  • This is one of those tricky problems that doesn't have an easy fix. The physics behavior generally doesn't work well with other behaviors, working in an unexpected manner.

    Here's an example that mostly fixes it while still using the 8 directions behavior, with an explanation afterwards:

    Fix thingy

    What this is doing is making sure that all physics objects are constantly in motion, even if just a tiny amount. Two physics objects that are in a state of rest can't interact.

    Since the green object is being moved by another behavior, the physics behavior always considers it to be in a state of rest, thus no interaction will occur between it and any other physics object. To fix this, you must stimulate the objects yourself with a small amount of force to bring them out of that resting state, and thus, interact.

    Ultimately, it might be a better idea to try and create the movement you're needing solely with the physics behavior. While it might be tricky to get it working initially, it will probably prevent further headaches with this issue in the future.

    I hope this helps.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks a lot, you have helped me out a nightmare.

    I need to trigger now the speed down before it hits the rock/block, then it looks fine, but I agree, its better to avoid using this kinda stuff, but anyway I really needed this in a level to solve a kinda quest what I had in mind so thanks again .

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