debug draw generates no output

Official forum for the Chipmunk2D Physics Library.
Post Reply
tviel
Posts: 1
Joined: Wed Feb 12, 2014 7:13 am
Contact:

debug draw generates no output

Post by tviel »

I now read and tested several tutorials. I switched from box2d to chipmunk and got stuck at the very beginning - Enabling Debug Draw using integrated CCPhysicsDebugNode. Here my steps:

I'm using cocos2dx-3.x
  • Enabled Chipmunk Integration
    Created a Space
    Added 1 static shape and two bodies to the space
    Overrided update function in my Layer to do a cpSpaceStep()
    Created a child layer of CCPhysicsDebugNode and added to Z-Order 9999
    which is every step I was able to find in the different tutorials.
With that setup, I stepped even in the draw() method of CCPhysicsDebugNode and followed the path. Looks like he is running the corresponding DrawShape methods and calls the renderer->draw* methods.

Anyhow, nothing is visible on screen.

Some1 out, who can give me a hint to an additional step or direction?

ofc I can also share some code, question currently seems still quite basic and I didnt want to clutter the question in first place by code.
Post Reply

Who is online

Users browsing this forum: No registered users and 38 guests