Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17117

Chipmunk rogue bodies don't block other bodies - plunker included

$
0
0

@Lupico wrote:

Hello blush

I'm migrating a Cocos2D-HTML5 project from v2.x to v3.x and the process makes me switch from Box2D to Chipmunk.

I've read the Chipmunk doc and found that "kinematic" bodies are called "rogue" ones and can easily be implemented by only adding a body's shapes to the space and not adding the body itself.

I've created the following plunk to share the issue I can't solve so far. It's an html5 lite 3.9 core with chipmunk only, no custom code other than the test-layer.js:
http://plnkr.co/edit/coQyoz?p=preview

It shows the dynamic body falling through the kinematic/rogue (middle) one and then land on the static shape (bottom). The contact with the rogue body seems however to happen and I believe to see the dynamic body slow down during contact. I trust the dynamic body should simply land on the rogue one. What am I doing wrong?

NB: I must create a moving platform. Perhaps there is another approach to this, please let me know, too.

Thanks in advance for your time,

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>