Update from 6 to 7

Official forum for the Chipmunk2D Physics Library.
Post Reply
KAMIKAZE
Posts: 4
Joined: Sun Jan 05, 2014 6:33 pm
Contact:

Update from 6 to 7

Post by KAMIKAZE »

Hello,

now, when chipmunk became free I decided to update my game for it.
Just replaced new lib and got this error that this class not found.
How now should I use autogeometry? Any new example?

Code: Select all

ChipmunkGLRenderBufferSampler *sampler = [[[ChipmunkGLRenderBufferSampler alloc] initWithXSamples:ws.width/downsample ySamples:size.height/downsample] autorelease];
ganesha
Posts: 71
Joined: Mon Sep 06, 2010 1:29 pm
Contact:

Re: Update from 6 to 7

Post by ganesha »

It works as normal in 7.

You must import that class explicitly. Have you done that?
KAMIKAZE
Posts: 4
Joined: Sun Jan 05, 2014 6:33 pm
Contact:

Re: Update from 6 to 7

Post by KAMIKAZE »

And can you please point me to this file in this github https://github.com/slembcke/Chipmunk2D
ganesha
Posts: 71
Joined: Mon Sep 06, 2010 1:29 pm
Contact:

Re: Update from 6 to 7

Post by ganesha »

Aha, I use the "old" commercial product Chipmunk Pro 7. I don´t know how to find it in the repository.
KAMIKAZE
Posts: 4
Joined: Sun Jan 05, 2014 6:33 pm
Contact:

Re: Update from 6 to 7

Post by KAMIKAZE »

Because there is no such class)
KAMIKAZE
Posts: 4
Joined: Sun Jan 05, 2014 6:33 pm
Contact:

Re: Update from 6 to 7

Post by KAMIKAZE »

So, I'm using cocos2d v2.2 and I need chipmunk autogeometry. In a past, I just downloaded trial version of pro and all works great. But now I want to update for 7 and I can't deal with it. Also 64bit is needed as well. And also of course for cocos2d 3.x.
User avatar
AndyKorth
Site Admin
Posts: 36
Joined: Wed Aug 15, 2007 3:56 pm

Re: Update from 6 to 7

Post by AndyKorth »

ChipmunkGLRenderBufferSampler is a utility class that isn't an official part of chipmunk.

I think the latest version is probably in Gemeralds:
http://chipmunk-physics.net/forum/viewt ... f=1&t=2588

You can grab the utility class here:
https://github.com/slembcke/Gemeralds/b ... rSampler.m
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests