<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>cocos2d for iPhone &#187; Topic: Getting an error with Chipmunk and Openfeint</title>
		<link>http://www.cocos2d-iphone.org/forum/topic/4011</link>
		<description>A fast, easy to use, free, and community supported 2D game engine</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 01:49:33 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.cocos2d-iphone.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.cocos2d-iphone.org/forum/rss/topic/4011" rel="self" type="application/rss+xml" />

		<item>
			<title>Tim on "Getting an error with Chipmunk and Openfeint"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4011#post-24036</link>
			<pubDate>Sat, 23 Jan 2010 01:23:20 +0000</pubDate>
			<dc:creator>Tim</dc:creator>
			<guid isPermaLink="false">24036@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Ah crud.</p>
<p>thx
</p></description>
		</item>
		<item>
			<title>crmagicxxx on "Getting an error with Chipmunk and Openfeint"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4011#post-24030</link>
			<pubDate>Sat, 23 Jan 2010 00:04:54 +0000</pubDate>
			<dc:creator>crmagicxxx</dc:creator>
			<guid isPermaLink="false">24030@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>You need to cast the shape-&#62;data<br />
<pre><code>Sprite *sprite = (Sprite *)shape-&#62;data;</code></pre></description>
		</item>
		<item>
			<title>Tim on "Getting an error with Chipmunk and Openfeint"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4011#post-24029</link>
			<pubDate>Fri, 22 Jan 2010 23:58:56 +0000</pubDate>
			<dc:creator>Tim</dc:creator>
			<guid isPermaLink="false">24029@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I had integrated Openfeint with a prior project just fine, but my latest app uses Chipmunk and the following static function throws an error when compiling after adding in Openfeint support:</p>
<pre><code>eachShape(void *ptr, void* unused)
{
	cpShape *shape = (cpShape*) ptr;
	Sprite *sprite = shape-&#62;data;
	if( sprite ) {
		cpBody *body = shape-&#62;body;
		[sprite setPosition: cpv( body-&#62;p.x, body-&#62;p.y)];
		[sprite setRotation: (float) CC_RADIANS_TO_DEGREES( -body-&#62;a )];
	}
}</code></pre>
<p>After integrating Openfeint I now get an error 'invalid conversion from void to sprite' message for the above method.  Given it was 4AM and I wanted to get the binary uploaded, I reverted back to a prior version that didn't have Openfeint, but I'd still like to integrate the leader boards.</p>
<p>TIA
</p></description>
		</item>

	</channel>
</rss>

