Why are constraints displayed on screen?

Official forum for the Chipmunk2D Physics Library.
Post Reply
RobertL
Posts: 2
Joined: Wed Jul 03, 2013 1:26 pm
Contact:

Why are constraints displayed on screen?

Post by RobertL »

I'm using chipmunk 5.3.5 with cocos2d. I was expecting to have to make sprites to represent constraints that I want to display but I'm getting a green line representing each constraint with a green square at the anchor points whether I want them or not. For this example I'm using a slideJoint. That's shows what's going on very nicely but I'd like to display the constraints in a different way. How can I turn off the green line and the green anchor points? I'm new to chipmunk.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Why are constraints displayed on screen?

Post by slembcke »

Chipmunk does no rendering. You must have a debug rendering node for Chipmunk in your scene somewhere. I didn't really have an official Cocos2D one for that old of a version of Chipmunk, so I'm not sure what to tell you to look for.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests