Legacy Documentation: Version 5.0
Area Effector 2D
Platform Effector 2D

Point Effector 2D

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Scripting

Point Effector 2D applies forces to attract/repulse against a point.

When the source Collider2D is a trigger, the effector will apply forces whenever the target Collider2D overlaps the source. When the source Collider isn’t a trigger, the effector will apply forces whenever the target Collider2D is in contact with the source only. This effector is designed primarily to work with source Collider2D that are set as triggers so that target Collider2D can overlap the defined area.

The Point Effector 2D Inspector
The Point Effector 2D Inspector

Properties

Property: Function:
Collider Mask The mask used to select specific layers allowed to interact with the effector.
Force Magnitude The magnitude of the force to be applied.
Force Variation The variation of the magnitude of the force to be applied.
Distance Scale The scale applied to the distance between the source and target.
Drag The linear drag to apply to RigidBodies.
Angular Drag The angular drag to apply to RigidBodies.
Force Source The source which is used to calculate the centroid point of the effector. The distance from the target is defined from this point.
Force Target The target for where the effector applies any force.
Force Mode The mode used to apply the effector force.
Area Effector 2D
Platform Effector 2D