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

Bug: Can't get updated worldTransform immediately #10433

Open
tikotus opened this issue Apr 10, 2024 · 0 comments
Open

Bug: Can't get updated worldTransform immediately #10433

tikotus opened this issue Apr 10, 2024 · 0 comments
Assignees

Comments

@tikotus
Copy link

tikotus commented Apr 10, 2024

Current Behavior

After modifying a container's transform, by setting its scale, position, etc., I'm unable to calculate the new world transform immediately after the operation.

Expected Behavior

I'd expect to be able to retrieve the new world transform of the object after modifying its transform.

Steps to Reproduce

const container = app.stage.addChild(new PIXI.Container())
container.scale.set(0.5)
// TODO: Force a recalculation of the container's world transform. How?
console.log(container.worldTransform) // This currently prints a matrix that doesn't contain the scale

Environment

  • pixi.js version: 8.0.5

Possible Solution

No response

Additional Information

I understand there's performance implications, but in certain situations it is important to be able to do this. I found multiple notions about calling updateTransform, but that doesn't work, and doesn't seem to behave the same in PixiJS v8.

@GoodBoyDigital GoodBoyDigital self-assigned this Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants