Objects in my app were colliding perfectly fine until I put those objects in a group. Now the objects collide when I start the game (as they are stars colliding with a sensor physics body that is the size of the screen) but they have no “ended” collision when I move them off the screen. It seems to me that altering the position of a group does not alter the x and y values of its children, it this why the physics collision does not occur? How do I solve this?
Changing a group’s <x,y> does change the <x,y> of the children, but it goofs up the physics engine.
That is if you do this:
- OBJA is in group1
- OBJB is in group2
- Change <x, y> position of group2
You will see incorrect collision behaviors between OBJA and OBJB.
All physics objects MUST have the same base <x, y> context.
I had to ditch the physics approach all together to get the functionality I wanted. Thank you for the input!
Changing a group’s <x,y> does change the <x,y> of the children, but it goofs up the physics engine.
That is if you do this:
- OBJA is in group1
- OBJB is in group2
- Change <x, y> position of group2
You will see incorrect collision behaviors between OBJA and OBJB.
All physics objects MUST have the same base <x, y> context.
I had to ditch the physics approach all together to get the functionality I wanted. Thank you for the input!