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

Magnetism property for objects. #212

Closed
dlinx opened this issue Feb 18, 2016 · 5 comments
Closed

Magnetism property for objects. #212

dlinx opened this issue Feb 18, 2016 · 5 comments

Comments

@dlinx
Copy link

dlinx commented Feb 18, 2016

I would like to suggest a new feature.
Can we add new object property which converts that object into a magnet.
Creating magnetic objects having north and south pole exactly same properties which a original magnet has.

@liabru
Copy link
Owner

liabru commented Feb 18, 2016

More generally these are known as attractors. My thoughts on this are as mentioned in #132:

I'll consider merging this but what I'd really like here are generalized attractor objects, rather than just a special case. That said, this feels like scope creep to me - I'd prefer this to live in a game engine.

I'm currently investigating patterns for creating plugins for matter.js, which would make it easier for people to create extensions like this.

@liabru
Copy link
Owner

liabru commented Feb 18, 2016

Just opened a thread on a possible plugins approach that may be useful here.

@liabru
Copy link
Owner

liabru commented Sep 4, 2016

I've just updated the plugins approach thread, including an attractors plugin, see this comment. This is not yet available in the master branch but it should be merged soon.

@liabru
Copy link
Owner

liabru commented Feb 12, 2017

The plugin is now ready, check it out at matter-attractors.

@liabru liabru closed this as completed Feb 12, 2017
@dlinx
Copy link
Author

dlinx commented Feb 13, 2017

Awesome, Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants