make an object not collide with itself... Read.

I have a spawner like so.

local myCircles = {} local function spawnCircle() local myCircle = display.newRect(enemyGroup,20,20,20,20 ) myCircle.x = math.random(W1\*0.2, W1\*0.8) myCircle:setFillColor(128/255,128/255,128/255) myCircle.y = math.random(H1\*-0.8, H1\*-0.2) physics.addBody(myCircle,"dynamic",{radius=5,bounce=1}) transition.to(myCircle,{time=999999,rotation=math.random(-99999,99999)}) myCircles[#myCircles+1] = myCircle end circlespawning=timer.performWithDelay(200,spawnCircle,200) speeditup = function (event) circlespawning=timer.performWithDelay(150,spawnCircle,0) end timer.performWithDelay(40000,speeditup) ------------------ local function remover() for i = #myCircles, 1, -1 do local myCircle = myCircles[i] if myCircle ~= nil then if myCircle.y \> H1\*0.7 then print(my.name) display.remove(myCircle) myCircles[i] = nil end end end end Runtime:addEventListener("enterFrame",remover)

How can I have these spawned circles ignore colliding with themselves? 

Check out this thread:

http://forums.coronalabs.com/topic/2128-collision-filters-helper-chart/

The info there is probably just what you want.

Jay

Follow-up…

If you’re going to use collision filters read the first few posts in that previously referenced thread, and then see this post that’s on the second page of that thread:

http://forums.coronalabs.com/topic/2128-collision-filters-helper-chart/?p=111153

Gives you a great tool to put your collision filters together.

Also, if you go to this page:

http://docs.coronalabs.com/guide/physics/collisionDetection/

…and scroll to the bottom you’ll see the Collision Filtering section – and at the bottom of that section is a subheading called groupIndex – I’ve never used it, but for what you’re doing it looks like it might be *much* easier than the regular filtering.

Hope that helps.

 Jay

WIZARDS! Thank you! I finally understand advanced collision filtering! THANKS AGAIN! btw THANKS! thanks ok cya thanks :slight_smile:

Check out this thread:

http://forums.coronalabs.com/topic/2128-collision-filters-helper-chart/

The info there is probably just what you want.

Jay

Follow-up…

If you’re going to use collision filters read the first few posts in that previously referenced thread, and then see this post that’s on the second page of that thread:

http://forums.coronalabs.com/topic/2128-collision-filters-helper-chart/?p=111153

Gives you a great tool to put your collision filters together.

Also, if you go to this page:

http://docs.coronalabs.com/guide/physics/collisionDetection/

…and scroll to the bottom you’ll see the Collision Filtering section – and at the bottom of that section is a subheading called groupIndex – I’ve never used it, but for what you’re doing it looks like it might be *much* easier than the regular filtering.

Hope that helps.

 Jay

WIZARDS! Thank you! I finally understand advanced collision filtering! THANKS AGAIN! btw THANKS! thanks ok cya thanks :slight_smile: