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

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Mallekin
Prole
Posts: 1
Joined: Thu Apr 05, 2012 6:21 pm

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

Post 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."
User avatar
kraftman
Party member
Posts: 277
Joined: Sat May 14, 2011 10:18 am

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

Post 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
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], Semrush [Bot] and 14 guests