Buoyance Demo with Circle Shapes

Official forum for the Chipmunk2D Physics Library.
Post Reply
damien.epiphany
Posts: 3
Joined: Tue Aug 06, 2013 4:08 am
Contact:

Buoyance Demo with Circle Shapes

Post by damien.epiphany »

Hi,

I've been using the Buoyancy Code for some water simulations, but it Asserts if a circle shape hits it at this line:

Code: Select all

int count = cpPolyShapeGetNumVerts(poly);
So, has someone managed to get circle shapes working, or should I do something else for circles?

Side Note: I want to detect if its a circle shape, but the shape class looks to be hidden within the code. Will I have to make my own shape checker?

Damien
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests