docs.unity.cn
    Show / Hide Table of Contents

    Enum RayPerceptionCastType

    Determines which dimensions the sensor will perform the casts in.

    Namespace: Unity.MLAgents.Sensors
    Syntax
    public enum RayPerceptionCastType : int

    Fields

    Name Description Value
    Cast2D

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

    0
    Cast3D

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

    1
    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on Monday, November 8, 2021
    Terms of use