Exemplo n.º 1
0
 public override void AgentReset()
 {
     this.transform.localPosition = new Vector3(StartX, 7f, StartZ);
     DM.SetRotation(0, Random.value * 360, 0);
     this.rBody.angularVelocity = Vector3.zero;
     this.rBody.velocity        = Vector3.zero;
     previousDistance           = 110;
 }
Exemplo n.º 2
0
 public override void AgentReset()
 {
     this.transform.localPosition = new Vector3(StartX, 7f, StartZ);
     DM.SetRotation(0, Random.value * 0, 0);
     this.rBody.angularVelocity = Vector3.zero;
     this.rBody.velocity        = Vector3.zero;
     previousDistance           = 110;
     counter += 1;
     mindis   = Vector3.Distance(this.transform.localPosition, Target.localPosition);
     minRo    = 90;
     resetTarget();
 }