[BEHAVIOR] Chipmunk Physics

From the Asset Store
Simple yet very life-like rag doll made with Physics!
  • Tombas

    It looks like Euler looking at the source.

  • Ok ... I looked into source and yes it looks like Euler. That question was just to be sure. Thanks.

  • Can I get the id of tile (from tilemap) that is collided with my ball (breakout game) with chipmunk?

    I have added chipmunk behavior to the ball and the tileset to bounce off the ball if it hits a brick, but I need to know, which brick was collided to remove it.

    I have done it based on this topic:

    forum/trying-to-understand-tilemap-collision-detection_t94500

    but this way i know only the center of my ball at the time of collision.

  • heal

    I think you should be able to find the collided with tile using the collision point and normal, but I have to think about it. The only issue I can think of is the collision point is on the edge of the tile so you may need to use the normal as well to get a point inside the tile. From there you can find the tile with tilemap's x to tile x expressions. I need to impliment a capx to be sure.

    I haven't looked into it yet, but I probably should.

  • Thank you R0J0hound!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I should have looked into it earlier, it ended up being dead simple to fix.

    Updated to version 2.2c:

    * Now with minifier support.

  • heal

    This seems to do the trick:

    R0J0hound, thank you very much for the help! Awesome

  • R0J0hound I need your help. After jointing via piviot joint three sprites like at the screenshot below I have many collisions beetwen sprites (I suppose) and they are "flying" away. What's the best way to join them together? Thx in advance

    btw, you have made great plugin

  • Valex

    You can disable the collisions between the joined objects by giving them the same non-zero collision group.

  • Valex

    You can disable the collisions between the joined objects by giving them the same non-zero collision group.

    it works, but I have to save collisions between them because it's bridge beam

  • Valex

    Other objects can still collide with them, but you still need to disable collisions between the beams.

    https://dl.dropboxusercontent.com/u/542 ... group.capx

    The only other option would be to change the location where you add the joint so that the beams aren't touching.

  • R0J0hound

    The minifier still doesnt work for me. Just a black screen. I am also using Paster in the same project, could it be that ?

    Thanks

  • Paster seems to work with the minifier.

    What does the browser console say? You can open it with ctrl+shift+j.

  • I am exporting to NW.js. its not an HTML project.

    Just tried it as a web export. the Chrome console says:

    Document was loaded from Application Cache with manifest http://www.mailtree.co.uk/temp/offline.appcache

    (index):1 Application Cache Checking event

    (index):118 Uncaught (in promise) DOMException: Only secure origins are allowed. http://goo.gl/lq4gCo {message: "Only secure origins are allowed. http://goo.gl/lq4gCo", name: "NotSupportedError", code: 9, INDEX_SIZE_ERR: 1, DOMSTRING_SIZE_ERR: 2…}(anonymous function) (index):118

    (index):1 Application Cache NoUpdate event

    c2runtime.js:94 Uncaught (in promise) DOMException: A call to lockOrientation() or unlockOrientation() canceled this call. {message: "A call to lockOrientation() or unlockOrientation() canceled this call.", name: "AbortError", code: 20, INDEX_SIZE_ERR: 1, DOMSTRING_SIZE_ERR: 2…}l.qr c2runtime.js:94l.xv c2runtime.js:89l.Uj c2runtime.js:103l.Cw.Cg.a.onload c2runtime.js:81

    www.mailtree.co.uk/:1 Uncaught (in promise) DOMException: lockOrientation() is not available on this device. {message: "lockOrientation() is not available on this device.", name: "NotSupportedError", code: 9, INDEX_SIZE_ERR: 1, DOMSTRING_SIZE_ERR: 2…}

    c2runtime.js:408 Uncaught ReferenceError: tri is not defined

    No idea what any of that means or if its relevent. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

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