📅  最后修改于: 2022-03-11 15:03:38.758000             🧑  作者: Mango
function Update () {
var hit : RaycastHit;
Debug.DrawRay (transform.position, -transform.up * 200, Color.red);
if (Physics.Raycast (transform.position, -transform.up, hit, 200)){
transform.up = hit.normal;
}
}