Page 1 of 1

Can't create CircleShape - love.physics (love 0.8.0)

Posted: Thu Apr 05, 2012 6:53 pm
by Mallekin
Hi,

i can't create any shape with the love.physics.

I tried

Code: Select all

shape = love.physics.newCircleShape(body, 0, 0, 20)
and i get "Incorrect number of parameters" But they should be correct (love.physics.newCircleShape)

Code: Select all

hape = love.physics.newPolygonShape(objects.ship.body, 0, 0, 10, 0, 0, 10)
gives me "Number of vertices must be a multiple of two."

Re: Can't create CircleShape - love.physics (love 0.8.0)

Posted: Fri Apr 06, 2012 12:22 am
by kraftman
A lot of the physics has changed in 0.8, and hasnt been updated on the wiki yet. It's due to the new version of box2d I believe. I havn't used it before, but i think that the way shapes are created has change, and the parameters for creating a new circle shape are different now.

Best bet is either to check out the source and see if you can figure it out yourself, or hope someone else knows whats going on :)

https://bitbucket.org/rude/love/src/4c6 ... hysics.cpp