Search Unity

Question Can the Grid Sensor be static?

Discussion in 'ML-Agents' started by swagzinna, Jan 11, 2022.

  1. swagzinna

    swagzinna

    Joined:
    Apr 20, 2021
    Posts:
    9
    Hi everybody,
    is there a way to make the grid sensor "static"? Meaning it is not a children of the agent object or a scripts of the agents object. I want the grid sensor to be static in one place. I saw that u can set an Agent object in the grid sensor, but can I just make a new Object with a grid sensor, set my agent with no sensor as the agent object and the agent will get the observations from the sensor? For whatever reason my gizmos dont work when the sensor isnt a children of the agent, hence I dont know if this works.
    Confirmation would be great.
    Thanks a lot,
    Leon :)
     
  2. mbaske

    mbaske

    Joined:
    Dec 31, 2017
    Posts:
    473
    Last edited: Jan 12, 2022