Skip to content

Fixtures export with a top-right translation #18

@katccat

Description

@katccat

When I chose the LibGDX exporter I kept noticing that bodies created using data from the PhysicsEditor would end up nowhere near the location of the Box2d BodyDef passed to the createBody method of the PhysicsShapeCache object. That is because as long as you draw fixtures within the canvas borders, every coordinate will be positive and that is either an oversight or it is just handled incorrectly by the loader. For example, in order for this fixture to be centered horizontally in game, it has to be clipping in the middle of the editor's left wall.
Screenshot 2024-08-24 at 22 13 24

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions