-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
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)
Metadata
Metadata
Assignees
Labels
No labels