In the file “ragdoll.lua” provided in the ragdoll sample app, the following code is provided to create the head:
– Head
local head = display.newCircle( startX, startY, 12.5 )
setFill(head, colorTable)
ragdoll:insert (head)
However, when I tweak it to, for instance,
local w,h = 2*15,2*10
local head = display.newRect( -w*0.5, -h*0.5, w, h )
so that the head should theoretically now be a rectangle, the head doesn’t change! No matter what I do or how I change it, the circular head is always the same. Is this a bug? How can I change the head? I’m new to corona and am just playing around with the sdk. Thanks!