用户工具

站点工具


侧边栏

script:unityengine:classes:collider2d:collider2d

Collider2D 二维碰撞器

Namespace: UnityEngine

Inherits from: Behaviour

Description 描述

Parent class for collider types used with 2D gameplay.

2D游戏碰撞器类型的父类。

See Also: BoxCollider2D class, CircleCollider2D class, PolygonCollider2D class.

Variables 变量

attachedRigidbodyThe Rigidbody2D attached to the Collider2D's GameObject.
Rigidbody2D附加到该Collider2D的游戏对象上。
boundsThe world space bounding area of the collider.
碰撞器的世界空间边界区域。
densityTThe density of the collider used to calculate its mass (when auto mass is enabled)
碰撞器的密度用来它的质量(当自动质量启用)。
isTriggerIs this collider configured as a trigger?
这个碰撞器被配置作为一个触发器?
offsetThe local offset of the collider geometry.
该碰撞器几何体的局部偏移。
shapeCountThe number of separate shaped regions in the collider.
该碰撞器上单独图形区域的数量。
sharedMaterialThe PhysicsMaterial2D that is applied to this collider.
应用到这个碰撞器的PhysicsMaterial2D 。
script/unityengine/classes/collider2d/collider2d.txt · 最后更改: 2016/08/02 05:26 (外部编辑)