用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:areaeffector2d:areaeffector2d

AreaEffector2D 区域二维效果器

Namespace: UnityEngine / Inherits from: Effector2D

Description 描述

Applies forces within an area.

在一个区域内使用力。

When the source Collider2D is a trigger, the effector will apply forces whenever the target Collider2D overlaps the source.

如果源Collider2D勾上trigger,每当目标Collider2D覆盖在源上,效果器都将产生力的作用。

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碰撞体仅与源接触时效应器将会应用力。

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碰撞体与定义区域重叠。

Variables 变量

angularDragThe angular drag to apply to rigid-bodies.
应用与刚体的角阻力。
dragThe linear drag to apply to rigid-bodies.
应用于刚体上的线性阻力。
forceDirectionThe direction of the force to be applied.
力应用的角度。
forceMagnitudeThe magnitude of the force to be applied.
力应用的级别。
forceTargetThe target for where the effector applies any force.
效应器应用任何力的目标。
forceVariationThe variation of the magnitude of the force to be applied.
力角度使用全局空间?
script/unityengine/classes/areaeffector2d/areaeffector2d.txt · 最后更改: 2016/08/02 05:29 (外部编辑)