Enum RayPerceptionCastType | ML Agents | 1.6.0-preview
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

    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 © 2020 Unity Technologies
    Generated by DocFX
    on 20 November 2020