[BEHAVIOR] Chipmunk Physics

  • nelostic

    There are two things:

    collision groups. When two instances are in the same group they won't collide. It's just a number.

    Collision layers. It's a series of 1's and 0's, one for each 32 layers. Two objects will only collide if they share a one in the same position.

    the Mnk

    It adds collision filtering, and a lot more joints as well as other improvements, as well as various differences.

  • hank You!

    Group 0 Don't Work!

    Group 1 is Work!

    This is Amazing!

    pensive-bose-5555d4.netlify.com

    epic-goldberg-bcaf43.netlify.com

  • have construct 3 vrrsion ?

  • inkfalcon

    Nope.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    Can someone tell me how to use hexadecimal with layers to get all 32? I only know they are A to F, but don't know how to use them. Thanks

    R0J0hound

  • This is an awesome plug in. Thanks.

  • megatronx

    The hexadecimal digits each are four bits. So you can use them for four layers. See the key here, but you can find it elsewhere as hexidecimal to binary. In total you can have 32 layers or 8 hexadecimal digits. In the layout editor it's convenient to use hex to set the layers. In the event editor you can do it too, or you can take an existing mask and modify it with construct's bitset expression.

    0 0000
    1 0001
    2 0010
    3 0011
    4 0100
    5 0101
    6 0110
    7 0111
    8 1000
    9 1001
    A 1010
    B 1011
    C 1100
    D 1101
    E 1110
    F 1111
  • megatronx

    The hexadecimal digits each are four bits. So you can use them for four layers. See the key here, but you can find it elsewhere as hexidecimal to binary. In total you can have 32 layers or 8 hexadecimal digits. In the layout editor it's convenient to use hex to set the layers. In the event editor you can do it too, or you can take an existing mask and modify it with construct's bitset expression.

    0 0000
    1 0001
    2 0010
    3 0011
    4 0100
    5 0101
    6 0110
    7 0111
    8 1000
    9 1001
    A 1010
    B 1011
    C 1100
    D 1101
    E 1110
    F 1111

    Thanks for reply. I've automated mine based on Z position variable, and right now I go trough loops checking that Z and Height and adding 0 or 1 to a string in between Z and a height. If I'd have 32 layers, how could I have it automated like that? Could I create a string with 32 digits or do I need to use letters instead?

    As an example how would 23 or 30 look like?

    Best!

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