docs.unity3d.com
    Show / Hide Table of Contents

    Class RayPerceptionSensorComponent3D

    A component for 3D Ray Perception.

    Inheritance
    Object
    SensorComponent
    RayPerceptionSensorComponentBase
    RayPerceptionSensorComponent3D
    Inherited Members
    RayPerceptionSensorComponentBase.SensorName
    RayPerceptionSensorComponentBase.DetectableTags
    RayPerceptionSensorComponentBase.RaysPerDirection
    RayPerceptionSensorComponentBase.MaxRayDegrees
    RayPerceptionSensorComponentBase.SphereCastRadius
    RayPerceptionSensorComponentBase.RayLength
    RayPerceptionSensorComponentBase.RayLayerMask
    RayPerceptionSensorComponentBase.ObservationStacks
    RayPerceptionSensorComponentBase.RaySensor
    RayPerceptionSensorComponentBase.CreateSensor()
    RayPerceptionSensorComponentBase.GetObservationShape()
    RayPerceptionSensorComponentBase.GetRayPerceptionInput()
    SensorComponent.IsVisual()
    SensorComponent.IsVector()
    Namespace: Unity.MLAgents.Sensors
    Syntax
    public class RayPerceptionSensorComponent3D : RayPerceptionSensorComponentBase

    Properties

    EndVerticalOffset

    Ray end is offset up or down by this amount.

    Declaration
    public float EndVerticalOffset { get; set; }
    Property Value
    Type Description
    Single

    StartVerticalOffset

    Ray start is offset up or down by this amount.

    Declaration
    public float StartVerticalOffset { get; set; }
    Property Value
    Type Description
    Single

    Methods

    GetCastType()

    Returns the RayPerceptionCastType for the associated raycast sensor.

    Declaration
    public override RayPerceptionCastType GetCastType()
    Returns
    Type Description
    RayPerceptionCastType
    Overrides
    RayPerceptionSensorComponentBase.GetCastType()

    GetEndVerticalOffset()

    Returns the amount that the ray end is offset up or down by.

    Declaration
    public override float GetEndVerticalOffset()
    Returns
    Type Description
    Single
    Overrides
    RayPerceptionSensorComponentBase.GetEndVerticalOffset()

    GetStartVerticalOffset()

    Returns the amount that the ray start is offset up or down by.

    Declaration
    public override float GetStartVerticalOffset()
    Returns
    Type Description
    Single
    Overrides
    RayPerceptionSensorComponentBase.GetStartVerticalOffset()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023