Search Unity

Question Agents for with 3 dimensional observers are too expensive to teach?

Discussion in 'ML-Agents' started by Pavel_Arkhipov, Feb 9, 2023.

  1. Pavel_Arkhipov

    Pavel_Arkhipov

    Joined:
    Jul 19, 2020
    Posts:
    12
    Hello, I noticed that majority of projects/examples of ml agents implementation are 2d. Even if it resembles a shooter genre, it comes down to doom-like one dimensional aiming. So I wonder, is it that hard/expensive to teach agent "lift his head up" from time to time? Do anybody have some info in "steps" on how it prolongs teaching process? Thank you in advance!
     
  2. hughperkins

    hughperkins

    Joined:
    Dec 3, 2022
    Posts:
    191
    It's totally doable. I made a small demo a few months ago (not publicly available), where the agent could move its head up and down, and take its observation field with it.

    You probably want a ray detector that scans not just sideways, but up/down too.

    I have an example of such a sensor, though not built for mlagents, but you could easily adapt the concept, at https://github.com/hughperkins/peaceful-pie/blob/main/PeacefulPie/RayCasts.cs
     
  3. Pavel_Arkhipov

    Pavel_Arkhipov

    Joined:
    Jul 19, 2020
    Posts:
    12
    Thank you! I will definitely have a look.
     
  4. EternalMe

    EternalMe

    Joined:
    Sep 12, 2014
    Posts:
    183
  5. EternalMe

    EternalMe

    Joined:
    Sep 12, 2014
    Posts:
    183
  6. Pavel_Arkhipov

    Pavel_Arkhipov

    Joined:
    Jul 19, 2020
    Posts:
    12