unity 射线终点问题

2025-01-03 01:48:11
推荐回答(1个)
回答1:

方向及长度

Vector3 fwd = transform.TransformDirection(-Vector3.up);
bool grounded = Physics.Raycast(transform.position,fwd, 10 );