Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ts][pixi-v7][pixi-v8] Provide a way to define a fixed bounds #2734

Open
davidetan opened this issue Jan 14, 2025 · 0 comments
Open

[ts][pixi-v7][pixi-v8] Provide a way to define a fixed bounds #2734

davidetan opened this issue Jan 14, 2025 · 0 comments
Assignees

Comments

@davidetan
Copy link
Collaborator

davidetan commented Jan 14, 2025

Our runtimes usually offer a way to define a bounds.
In spine-pixi-v8 the game object bounds work like this:

  1. If some bounding box attachments are active, the bounds will follow them
  2. Otherwise the bounds is dynamically calculated each frame

Solution 1 is rarely used. Moreover, if someone wants to use bounding box for other reasons, they will affect inevitably the game object bounds.

Solution 2 does not allow to easily size the game object. Moreover, it recalculates the bounds each frame.

Our runtimes usually offer to define a fixed bounds based on:

  • An animation and, optionally, a skin
  • An AABB rectangle

Once defined, the bounds does not change, unless the user redifine them.

We should allow users to define bounds as in other runtimes.


In spine-pixi-v7 the behaviour is similar, but the implementation is different. Additionaly, the bounds does not take into consideration bounding box attachments.

@davidetan davidetan self-assigned this Jan 14, 2025
@davidetan davidetan changed the title [ts][pixi-v8] Provide a way to define a fixed bounds [ts][pixi-v7][pixi-v8] Provide a way to define a fixed bounds Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant