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

Expose Phaser.Physics.Arcade.Components to the user #4440

Closed
jackfreak opened this issue Mar 23, 2019 · 1 comment
Closed

Expose Phaser.Physics.Arcade.Components to the user #4440

jackfreak opened this issue Mar 23, 2019 · 1 comment

Comments

@jackfreak
Copy link

I was trying to implement my own GameObject using as a base Phaser.GameObjects.Zone. My new GameObject needs a body (arcade) so I'm using scene.physics.add.existing(this, true).

No problem there. But I wanted to decorate that GameObject with Phaser.Physics.Arcade.Components.Enable and others and I found that the Arcade Components are not exposed in Phaser.Physics.Arcade.

https://github.com/photonstorm/phaser/blob/master/src/physics/arcade/index.js

It would be great to be able to use them (and all other internal components too). :)

@photonstorm
Copy link
Collaborator

Thank you for submitting this feature request. We have implemented this and the feature has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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