Skip to content

Anchor always set to (0.5, 0.5) after P2.enableBody #938

@petarov

Description

@petarov

Hi,

When using P2 for physics the anchor of a sprite will automatically be set to 0.5, 0.5. As far as I saw, this behavior is not the same as when using Arcade for physics.

Normally, this shouldn't be a big deal, but I spent a lot of time figuring out why a static P2 body was not being placed at the coordinates I set when adding the sprite. Example

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