class in UnityEngine/Inherits from: Effector2D
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.
|angularDrag||The angular drag to apply to rigid-bodies.
|distanceScale||The scale applied to the calculated distance between source and target.
|drag||The linear drag to apply to rigid-bodies.
|forceMagnitude||The magnitude of the force to be applied.
|forceMode||The mode used to apply the effector force.
|forceSource||The source which is used to calculate the centroid point of the effector. The distance from the target is defined from this point.
|script/unityengine/classes/pointeffector2d/pointeffector2d.txt · 最后更改: 2016/08/02 05:31 (外部编辑)