方向及长度Vector3 fwd = transform.TransformDirection(-Vector3.up); bool grounded = Physics.Raycast(transform.position,fwd, 10 );