用户工具

站点工具


侧边栏

script:unityengine:classes:platformeffector2d:platformeffector2d

PlatformEffector2D 2D平台效果器

class in UnityEngine/Inherits from: Effector2D

Description 描述

Applies “platform” behaviour such as one-way collisions etc.

适用“平台”的行为,比如单向碰撞等。

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.

当源Collider2D 时个触发器时,该效应器每当源重叠时应用力到目标Collider2D 。当源碰撞器不是触发器时,仅当该效应器接触源碰撞器时应用力。

Variables 变量

sideArcThe angle of an arc that defines the sides of the platform centered on the local 'left' and 'right' of the effector. Any collision normals within this arc are considered for the 'side' behaviours.
弧形的角度指定义在以效应器自身“左”和“右”上的平台的两侧。任何碰撞法线在该弧形内部认为是该“侧面”的行为。
surfaceArcThe angle of an arc that defines the surface of the platform centered of the local 'up' of the effector.
弧形的角度定义集中在效应器自身上方的平台表面。
useOneWayShould the one-way collision behaviour be used?
是否使用单向碰撞行为?
useOneWayGroupingEnsures that all contacts controlled by the one-way behaviour act the same.
确保所有通过单向接触控制行为相同。
useSideBounceShould bounce be used on the platform sides?
在平台侧面是否使用反弹?
useSideFrictionShould friction be used on the platform sides?
是否应该在平台侧面使用摩擦力?
script/unityengine/classes/platformeffector2d/platformeffector2d.txt · 最后更改: 2016/08/02 05:27 (外部编辑)