用户工具

站点工具


侧边栏

script:unityengine:classes:charactercontroller:charactercontroller

CharacterController 角色控制器

Namespace: UnityEngine
Inherits from: Collider

Description 描述

A CharacterController allows you to easily do movement constrained by collisions without having to deal with a rigidbody.

角色控制器让你在受制于碰撞的情况下很容易的进行运动,而不用处理刚体。

A CharacterController is not affected by forces and will only move when you call the Move funtion. It will then carry out the movement but be constrained by collisions.

角色控制器不受力的影响,仅当你调用Move函数时才运动。它执行运动,但是受制于碰撞。

See Also: Character Controller component and Character animation examples

Variables 变量

centerThe center of the character's capsule relative to the transform's position.
相对于变换位置的角色胶囊体的中心。
collisionFlagsWhat part of the capsule collided with the environment during the last CharacterController.Move call.
在最后的CharacterController.Move调用期间,胶囊体的哪个部分与周围环境相碰撞。
detectCollisionsDetermines whether other rigidbodies or character controllers collide with this character controller (by default this is always enabled).
检测其他的刚体和角色控制器是否与本角色控制器相碰撞(默认值始终启用)。
heightThe height of the character's capsule.
角色胶囊体的高度。
isGroundedWas the CharacterController touching the ground during the last move?
在最后一次移动角色控制器是否触碰地面?
radiusThe radius of the character's capsule.
角色胶囊体的半径。
script/unityengine/classes/charactercontroller/charactercontroller.txt · 最后更改: 2016/08/02 05:28 (外部编辑)