11
2015
PointEffector2D
Unity5 comes with new PointEffector2D
How to use it?
– Add sprite to scene
– Add CircleCollider2D (or some other 2D collider)
– Enable: [x] Trigger *Note: Effector works without trigger enabled also, but only when other object is touching the collider.
– Enable [x] Used by Effector
– Add PointEffector2D component
– Adjust Force magnitude (if it doesnt seem to affect enough, negative values will attract and positive values will repel objects away)
Then just add other objects that the effector will affect:
– Add sprite
– Add rigidbody2D
– Add CircleCollider2D (or some other 2D collider)
Image#1: Point effector, note the circle collider radius is adjusted, that is the area it affects.

—
Image#2: normal object with collider2D and rigidbody2D, when it enters point effector area, it gets affected by it

—
Results for the settings above:
Related Posts
3 Comments + Add Comment
Leave a comment
Recent posts
- Adding Real World Location to Ice Fishing Prototype
- [web tool] Image Channel Inspector : AlphaScope
- Editor Tool: Smart Recompile (don’t recompile if edit comments)
- Editor Tool: Scene Size Analyzer
- LudumDare 60: Old Tech
- uBasic Scripting Language for Unity
- GreaseMonkey+Editor Plugin: 1-Click Copy script from ChatGPT (Web) to Unity Editor (as script)
- Editor Tool: Property Watcher
- .unityignore : Hide files from Project window
- PostBuild Script to Create Single exe Standalone File
- Game Loop Designer
- Favorites in PackageManager
Recent Comments
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by













This is AWESOME! What a great feature! Thank you for making me aware of it!
More 2D effectors presented here:
https://youtu.be/9DmRNlIJIp0?t=34m15s
live training coming up:
2D Physics: Fun with Effectors
Monday, April 6th
http://unity3d.com/learn/live-training/session/2d-physics-fun-effectors