weapons.bulletCollide and weapons.bulletCheckIfCollide are both set up to receive a botSection and a bullet as arguments, but this syntax results in no collisions. Or must I do something like:
Does this work for you? I tried adding all the weapons’ bullet groups to an array and colliding them before going with the forEach method, but then discovered apparently you can only collide arrays of physicsGroups, not regular groups. However looking again I’ve seen that when you create a weapon you can optionally add a group that all the bullets are added to, so I’ve created an allBullets group as a property of my weaponManager ‘weapons’ and collided that instead. Now looking much more elegant