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. fm=60
tankeMCD=8
public Transfem player position {ge{ retorn crareobject. Find ("Tank {:2''}.
public class respectiresense sense
Transfom.
{ public float fou 36
public float MCD s8
Public Transform playerposition Iget {return Gameobject. Find ("Tank").
public override void updatesense ()
Eectors dir = vector3. Distance Cplayerposition-transfom.po Normlized, Var Angle = vector3. Angle (transformiposition, dir.
if (angle fou ?2)
{if (Physics. Raycast (transformiposition, dir, out Raycast 1
hitInfo, mco) Q1. Write a script attached to tank1 game object to performed
following tasks:
In the left image, tank1 needs to randomly wander about 2020
m2 area. Tank1 sees using cone of sight (triangle).
a.Tank1 needs to randomly wander and check if
something is in the area
b. Tank1 must chase tank2 if sees it.
Hint: Check whether tank2 in range; if so, cast a ray to identify.
 please complete my solving transform. fm=60 tankeMCD=8 public Transfem player position

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!