Esempio n. 1
0
    private void Update()
    {
        float[] inputs  = laserController.GetLasersDistances();
        float[] outputs = brain.FeedForward(inputs);
        UpdateMovement(outputs);

        transform.position += transform.forward * (baseSpeed * speedMultiplier * Time.deltaTime + 0.5f * acceleration * Time.deltaTime * Time.deltaTime);
        transform.Rotate(new Vector3(0, direction, 0));

        fitness += 0.05f;
    }