2 hours ago, Finalspace said:
but then the pieces damage the neighboring actors as well... which is not want i want.
Many ways to do it.
The first and most broad may be a flag that fragments don't collide with other fragments containing the same component.
Another may be to maintain a list of non-destruction objects, or perhaps destruction-causing objects, on your component. When fragments break off, mark their parents ID on the list. When it comes time to collide, if any ID matches both lists or each other's IDs, the damage doesn't happen.
2 hours ago, Finalspace said:
Also the pieces gets thrown in all 3 directions, but i want to be limited to some Plane.
Depends on how they are moved in your game. Immediately coming to mind, if they're physics driven, set them far enough apart they don't collide with each other, then apply forces along your plane.
2 hours ago, Finalspace said:
What must i set to limit the created pieces to a certain plane - like for example to the XY plane (for rotation as well)
There are many different representation of a plane and rotation by positions, some make this work easier than others.
Again with the first solution that jumps out at me, start with an axis of rotation through the explosion point. For example, if you want to spread them on the XY plane pick the Z axis, or the XZ plane pick the Y axis, if you've got some other plane pick the orthogonal axis. Select any angle of rotation around that axis for your directions. After that apply a rotation matrix for the direction you want to travel. If you're spreading in n directions you may want to subdivide it into n blocks then pick a random angle within that block.