a body that is 3 triangles not touching spaced out can be achieved modifying the multi body ex:
local car = display.newImage( "car.png" )
local roofShape = { -20,-10, 20,-10, 20,10, -20,10 }
local hoodShape = { 0,-35, 37,30, -37,30 }
local trunkShape = { 0,-37, 37,-10, 23,34, -23,34, -37,-10 }
physics.addBody( car, "dynamic",
{ density=3.0, friction=0.5, bounce=0.2, shape=roofShape },
{ density=6.0, friction=0.6, bounce=0.4, shape=hoodShape },
{ density=4.0, friction=0.5, bounce=0.4, shape=trunkShape }
)
if i want 3 circles (ie the physics body is 3 big dots not touching
) how would i do so if specifying radius=number always takes the same origin for each circle and {x=} doesnt seem to work?
{ density=3.0, friction=0.5, bounce=0.2, radius=30 },
{ density=6.0, friction=0.6, bounce=0.4, radius=40, x=50 }, --x not working, makes at same spot
i can always use shape= to make 3 blocky circles, but i’d need a utility to generate like 80 xy sets to get smooth collision/rubbing…not sure if viable resource-wise.