capsulecollider 胶囊碰撞器

2015-1-4 09:47| 发布者: 杨炎| 查看: 2159| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: capsulecollider 胶囊碰撞器inherits fromcollidera capsule-shaped primitive collider.一个胶囊形状的基本碰撞器。capsules are cylinders with a half-sphere at each end.胶囊碰撞器是在圆柱体的两端带有2个半球 ...

capsulecollider 胶囊碰撞

inherits fromcollider

a capsule-shaped primitive collider.

一个胶囊形状的基本碰撞器。

capsules are cylinders with a half-sphere at each end.

胶囊碰撞器是在圆柱体的两端带有2个半球的形状。

参见:boxcollider,spherecollider,physicmaterial,rigidbody

variables变量

center

the center of the capsule, measured in the object's local space.

radius

the radius of the sphere, measured in the object's local space.

height

the height of the capsule meased in the object's local space.

direction

the direction of the capsule.

inherited members继承成员

inherited variables继承变量

enabled

enabled colliders will collide with other colliders, disabled colliders won't.

启用碰撞器将会碰撞其他碰撞器,禁用碰撞器就不会碰撞其他碰撞器。

attachedrigidbody

the rigidbody the collider is attached to.

碰撞器附加的刚体。

istrigger

is the collider a trigger?

碰撞器是一个触发器? (是否可以穿越)

material

the material used by the collider.

撞器使用的材质

sharedmaterial

the shared physic material of this collider.

碰撞器的共享物理材质。

bounds

the world space bounding volume of the collider.

碰撞器在世界坐标空间的边界框。

transform

thetransformattached to thisgameobject(null if there is none attached).

transform附加到gameobject(游戏物体)(如无附加则为空)。

rigidbody

therigidbodyattached to thisgameobject(null if there is none attached).

rigidbody附加到gameobject(游戏物体)(如无附加则为空)。

camera

thecameraattached to thisgameobject(null if there is none attached).

camera附加到gameobject(游戏物体)(如无附加则为空)。

light

thelightattached to thisgameobject(null if there is none attached).

light附加到gameobject(游戏物体)(如无附加则为空)。

animation

theanimationattached to thisgameobject(null if there is none attached).

animation附加到gameobject(游戏物体)(如无附加则为空)。

constantforce

theconstantforceattached to thisgameobject(null if there is none attached).

constantforce附加到gameobject(游戏物体)(如无附加则为空)。

renderer

therendererattached to thisgameobject(null if there is none attached).

renderer附加到gameobject(游戏物体)(如无附加则为空)。

audio

theaudiosourceattached to thisgameobject(null if there is none attached).

audiosource附加到gameobject(游戏物体)(如无附加则为空)。

guitext

theguitextattached to thisgameobject(null if there is none attached).

guitext附加到gameobject(游戏物体)(如无附加则为空)。

networkview

thenetworkviewattached to thisgameobject(read only). (null if there is none attached)

networkview附加到gameobject(游戏物体)(只读)(如无附加则为空)。

guitexture

theguitextureattached to thisgameobject(read only). (null if there is none attached)

guitexture附加到gameobject(游戏物体)(只读)(如无附加则为空)。

collider

thecolliderattached to thisgameobject(null if there is none attached).

collider附加到gameobject(游戏物体)(如无附加则为空)。

hingejoint

thehingejointattached to thisgameobject(null if there is none attached).

hingejoint附加到gameobject(游戏物体)(如无附加则为空)。

particleemitter

theparticleemitterattached to thisgameobject(null if there is none attached).

particleemitter附加到gameobject(游戏物体)(如无附加则为空)。

gameobject

the game object this component is attached to. a component is always attached to a game object.

组件附加的游戏物体。一个组件总是被附加到一个游戏物体。

tag

the tag of this game object.

游戏物体的标签。

name

the name of the object. //物体的名字

hideflags

should the object be hidden, saved with the scene or modifiable by the user?

物体是否被隐藏、保存在场景中或被用户修改?

inherited functions继承函数

closestpointonbounds

the closest point to the bounding box of the attached collider.

到附加碰撞器的边界框最近的点。

raycast

casts a ray that ignores all colliders except this one.

投射一个光线(ray),它忽略所有碰撞器,除了这个。

相关阅读

文章点评
相关文章