📜  从光线投射数组中获取变换 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:41.607000             🧑  作者: Mango

代码示例1
//you sould be able to get away with something like this:
RaycastHit2D hit = Physics2D.CircleCastAll(currentSoldier.transform.position, currentSoldier.weapon.range, new Vector3(0, 0, 0), 0f);
transform transform = hit.transform;