お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseCharacterController.Moveが呼ばれている環境で衝突しているカプセルの部分はどこかを表します。
function Update () { var controller : CharacterController = GetComponent(CharacterController); if ((controller.collisionFlags & CollisionFlags.Above) != 0) print("touched the ceiling"); }