Skip to content

SpriteToCircle not working #16

@milestorm

Description

@milestorm

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions