I have a group that contains a large number of children that are P2 physics objects.
When I tween the group the sprites all move correctly, but their collisions occur in the position they were prior to the tween.
Is there a good way to update the position of the bodies of all the children?
Heres some super simplified code incase it helps:
const collisionGroup1 = game.physics.p2.createCollisionGroup();
const collisionGroup2 = game.physics.p2.createCollisionGroup();
const targetsGroup = game.add.group(0,0);
const ammoGroup = game.add.group(0,300);
const target1 = targetsGroup.create(0,0, "key");
const target2 = targetsGroup.create(50,0, "key");
const bullet = ammoGroup.create(0,0, "key2");
Any help would be greatly appreciated, cheers