素人Unity練習帳
前回の続き
![](img/unity01/VsShootingGame015095.png)
物理法則をつける
Enemyを選択して、AddComponent>Physics>Rigidbody
索敵領域をつける
HierarchyのEnemyを選択して、右クリック3DObjects>sphere
名前をSearchAreaにする
![](img/unity01/VsShootingGame015221.png)
Inspector>Transform>Scale X 10 Y 10 Z 10
MeshRenderer右の歯車マークをクリック>RemoveConponentで外す
![](img/unity01/VsShootingGame015312.png)
また、緑の枠内を通過できるように
Inspector>SphereColiderの
Is Triggerにチェックを入れる
![](img/unity01/VsShootingGame015378.png)
前へ 次へ
![運営者画像](./img/myphoto.png)
Reon Viewin