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

Some functions are missing #48

Closed
Marchiuzzz opened this issue Sep 9, 2022 · 3 comments
Closed

Some functions are missing #48

Marchiuzzz opened this issue Sep 9, 2022 · 3 comments

Comments

@Marchiuzzz
Copy link

Marchiuzzz commented Sep 9, 2022

I'm trying to use setBoundsRectangle method on Physics arcade body, which is suppose to be available since Phaser 3.20 but it seems this function is missing from this package. I get setBoundsRectangle is undefined. I checked the code of node_modules and indeed, everything related to customBoundsRectangle is missing.
This is the original Phaser https://github.com/photonstorm/phaser/blob/v3.51.0/src/physics/arcade/Body.js#L1165

image

And this is the code from this package
image

Why are some functions missing even though this package is suppose to be using 3.51?

@jdnichollsc
Copy link
Member

hello @Marchiuzzz, can you create a reproducible demo to be able to debug your issue? Phaser is a peer dependency for this package, are you using Angular, React or VueJS?

@Marchiuzzz
Copy link
Author

@jdnichollsc I'm using Vue.js. Apparently I was using an older version of this package, updating to 1.3.0 solved this issue.

@jdnichollsc
Copy link
Member

@Marchiuzzz thanks for letting me know! ❤️

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