Question: please complete my solving transform. f m = 6 0 t a n k e M C D = 8 public Transfem player position {
please complete my solving
transform.
public Transfem player position retorn crareobject. Find Tank :
public class respectiresense sense
Transfom.
public float fou
public float MCD
Public Transform playerposition Iget return Gameobject. Find Tank
public override void updatesense
Eectors dir vector Distance Cplayerpositiontransfom.po Normlized, Var Angle vector Angle transformiposition dir.
if angle fou
if Physics Raycast transformiposition dir, out Raycast
hitInfo, mco Q Write a script attached to tank game object to performed
following tasks:
In the left image, tank needs to randomly wander about
area. Tank sees using cone of sight triangle
aTank needs to randomly wander and check if
something is in the area
b Tank must chase tank if sees it
Hint: Check whether tank in range; if so cast a ray to identify.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
