box2dweb 2.1a version: http://code.google.com/p/box2dweb/
Hey all, having a bit of trouble with the port. I am able to change the filter group of my objects dynamically (logs out fine) however, changing fixtures bodies at runtime seems to have no effect in the web vesrion.
I noticed for older box2d versions there was a world.refilter method that has been depreciated... any ideas to make my box2d bodies react to having their collision filter changed?
doing this for a game where there's 2 pirate ships that shoot at each other - when a cannonball hits a ship I change it's collision group so it should stop contacting the ship... but it does
I also tried adding my filter changes to an array and calling setfilterdata before the world timestep, but same issue.
TL;DR setting collision groups when creating fixtures works, but not dynamically during runtime with setfilterdata... pulling my hair out.
2 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest