Skip to content

SpriteToCircle not working #16

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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