Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Ray Perception Sensor 3D

Discussion in 'ML-Agents' started by tom_ptrs, Oct 6, 2020.

  1. tom_ptrs

    tom_ptrs

    Joined:
    Jun 26, 2017
    Posts:
    2
    If I check the pushblock example, the agent has a ray perception sensor component attached. Neverthless, I check the agent code, nothing of the sensor is added to the observations.
    Can anyone explain me how this works?
     
  2. MidnightGameDeveloper

    MidnightGameDeveloper

    Joined:
    Apr 26, 2014
    Posts:
    122
    Hello,
    on the BehaviorParameters-Component you can check "Use Child Sensors", this will automatically add the observations from the Ray Perceptions Sensors for you.
     
    henrypeteet likes this.
  3. m4l4

    m4l4

    Joined:
    Jul 28, 2020
    Posts:
    81
    Maybe i'm wrong, but "use child sensor" should refers to sensor you have attached to children of the agent gameobject.
    The raycast sensor doesn't need to be added to the observation in either case. If i remember well, it add inputs based on num of rays * num of tags, and does it automatically
     
    samarth-robo likes this.