I've found out, that function SpriteToCircle is not working. It does not set any radius, so the solution may be to set radius instead of size in props
function SpriteToCircle(worldId, sprite, data) {
const scaleX = sprite?.scaleX || sprite?.scale?.x || 1;
const props = {
worldId,
type: DYNAMIC,
radius: pxm(sprite.width * scaleX / 2)
};
... (the rest of the code remains the same)
I've found out, that function
SpriteToCircleis not working. It does not set any radius, so the solution may be to setradiusinstead ofsizeinprops... (the rest of the code remains the same)