用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:surfaceeffector2d:surfaceeffector2d

SurfaceEffector2D 2D表面效应器

class in UnityEngine/Inherits from: Effector2D

Description 描述

Applies tangent forces along the surfaces of colliders.

沿着碰撞体表面切线施加力。

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覆盖该原型该感应器将施加力。当该Collider原型不是一个触发器时,无论何时仅在感应器与原型接触时该感应器才会施加力。

This effector can be used to create constant speed elevators and moving surfaces.

该感应器可用于创建恒定力的电梯和移动的表面。

Variables 变量

forceScaleThe scale of the impulse force applied while attempting to reach the surface speed.
当尝试达到表面速度时,冲击力应用的规模。
speedThe speed to be maintained along the surface.
沿着表面维持的速度。
speedVariationThe speed variation (from zero to the variation) added to base speed to be applied.
速度变化(从零开始变化),添加速度给该应用。
useBounceShould bounce be used for any contact with the surface?
是否用于任何接触面使用弹力?
useContactForceShould the impulse force but applied to the contact point?
该冲击力是否只用于接触点?
useFrictionShould friction be used for any contact with the surface?
该对象的表面的任何接触的地方是否应用摩擦力。
script/unityengine/classes/surfaceeffector2d/surfaceeffector2d.txt · 最后更改: 2016/08/02 05:28 (外部编辑)