Search Unity

Extending RayPerceptionSensor3D with extra information

Discussion in 'ML-Agents' started by Famattsson, Mar 10, 2020.

  1. Famattsson

    Famattsson

    Joined:
    Nov 28, 2013
    Posts:
    2
    Hi, i'm wondering whether there is any way to add extra information from gameobjects that are hit to the observations of the agent.
     
  2. celion_unity

    celion_unity

    Joined:
    Jun 12, 2019
    Posts:
    289
    There's not any way to do this in the current code; you could potentially write your own sensor that does something similar to RayPerceptionSensor3D but adds the extra data.

    What information do you want to add? If it's general enough, we can try to add it in a future version.
     
  3. Famattsson

    Famattsson

    Joined:
    Nov 28, 2013
    Posts:
    2
    I want to add something akin to subtags, i would've done it by using a variable on the gameobject with another tag.
     
    johnbergago likes this.