用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:collision:collision

Collision 碰撞

Namespace: UnityEngine

Description 描述

Describes collision.

描述碰撞.

Collision information is passed to Collider.OnCollisionEnter, Collider.OnCollisionStay and Collider.OnCollisionExit events.

碰撞信息被传递给Collider.OnCollisionEnter, Collider.OnCollisionStay和Collider.OnCollisionExit这些事件。

Variables 变量

colliderThe Collider we hit (Read Only).
被碰撞的那个碰撞器(只读)。
contactsThe contact points generated by the physics engine.
物理引擎生成的碰撞点集。
gameObjectThe GameObject whose collider we are colliding with. (Read Only).
被碰撞的碰撞器所在的游戏对象(只读)。
impulseThe total impulse applied to this contact pair to resolve the collision
应用在接触解决的碰撞的总的推动力。
relativeVelocityThe relative linear velocity of the two colliding objects (Read Only).
两个碰撞的对象之间的相对线性速度(只读)。
rigidbodyThe Rigidbody we hit (Read Only). This is null if the object we hit is a collider with no rigidbody attached.
被碰撞的刚体组件(只读)。当这个对象碰撞到一个没有被附加刚体组件的碰撞器时返回null。
transformThe Transform of the object we hit (Read Only).
我们点击的对象的变换(只读)。
script/unityengine/classes/collision/collision.txt · 最后更改: 2016/08/02 05:35 (外部编辑)