docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct PhysicsSensorSettings

    Settings that define the observations generated for physics-based sensors.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.MLAgents.Sensors
    Assembly: Unity.ML-Agents.dll
    Syntax
    [MovedFrom("Unity.MLAgents.Extensions.Sensors")]
    [Serializable]
    public struct PhysicsSensorSettings

    Fields

    UseJointForces

    Whether to use the joint forces and torques that are applied by the solver as observations.

    Declaration
    public bool UseJointForces
    Field Value
    Type Description
    bool

    UseJointPositionsAndAngles

    Whether to use joint-specific positions and angles as observations.

    Declaration
    public bool UseJointPositionsAndAngles
    Field Value
    Type Description
    bool

    UseLocalSpaceLinearVelocity

    Whether to use local space (relative to the parent body) linear velocities as observations.

    Declaration
    public bool UseLocalSpaceLinearVelocity
    Field Value
    Type Description
    bool

    UseLocalSpaceRotations

    Whether to use local space (relative to the parent body) translations as observations.

    Declaration
    public bool UseLocalSpaceRotations
    Field Value
    Type Description
    bool

    UseLocalSpaceTranslations

    Whether to use local space (relative to the parent body) translations as observations.

    Declaration
    public bool UseLocalSpaceTranslations
    Field Value
    Type Description
    bool

    UseModelSpaceLinearVelocity

    Whether to use model space (relative to the root body) linear velocities as observations.

    Declaration
    public bool UseModelSpaceLinearVelocity
    Field Value
    Type Description
    bool

    UseModelSpaceRotations

    Whether to use model space (relative to the root body) rotations as observations.

    Declaration
    public bool UseModelSpaceRotations
    Field Value
    Type Description
    bool

    UseModelSpaceTranslations

    Whether to use model space (relative to the root body) translations as observations.

    Declaration
    public bool UseModelSpaceTranslations
    Field Value
    Type Description
    bool

    Properties

    UseLocalSpace

    Whether any local space observations are being used.

    Declaration
    public bool UseLocalSpace { get; }
    Property Value
    Type Description
    bool

    UseModelSpace

    Whether any model space observations are being used.

    Declaration
    public bool UseModelSpace { get; }
    Property Value
    Type Description
    bool

    Methods

    Default()

    Creates a PhysicsSensorSettings with reasonable default values.

    Declaration
    public static PhysicsSensorSettings Default()
    Returns
    Type Description
    PhysicsSensorSettings

    PhysicsSensorSettings with reasonable default values.

    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)