docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum RayPerceptionCastType

    Determines which dimensions the sensor will perform the casts in.

    Namespace: Unity.MLAgents.Sensors
    Assembly: Unity.ML-Agents.dll
    Syntax
    public enum RayPerceptionCastType

    Fields

    Name Description
    Cast2D

    Cast in 2 dimensions, using Physics2D.CircleCast or Physics2D.RayCast.

    Cast3D

    Cast in 3 dimensions, using Physics.SphereCast or Physics.RayCast.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)