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.
当源2D碰撞器触发,该效应器将会应用力到目标2D碰撞器与源碰撞器重叠部分。当源2D碰撞器不触发时,效应器将会仅应用力到目2D碰撞器接触的部分。
This effector is designed primarily to work with source Collider2D that are set as triggers so that target Collider2D can overlap the defined area.
该效应器设计首要作用于源2D碰撞器,设置作为触发器因此目标2D碰撞器可以与定义区域重叠。
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 (外部编辑)
除额外注明的地方外,本维基上的内容按下列许可协议发布: CC Attribution-Share Alike 3.0 Unported |