Struct PhysicsSensorSettings
Settings that define the observations generated for physics-based sensors.
Inherited Members
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 |
|