Class RigidBodySensorComponent
Editor component that creates a PhysicsBodySensor for the Agent.
Inheritance
RigidBodySensorComponent
Inherited Members
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.MLAgents.Sensors
Assembly: Unity.ML-Agents.dll
Syntax
[MovedFrom("Unity.MLAgents.Extensions.Sensors")]
public class RigidBodySensorComponent : SensorComponent
Fields
RootBody
The root Rigidbody of the system.
Declaration
public Rigidbody RootBody
Field Value
Type | Description |
---|---|
Rigidbody |
Settings
Settings defining what types of observations will be generated.
Declaration
[SerializeField]
public PhysicsSensorSettings Settings
Field Value
Type | Description |
---|---|
PhysicsSensorSettings |
VirtualRoot
Optional GameObject used to determine the root of the poses.
Declaration
public GameObject VirtualRoot
Field Value
Type | Description |
---|---|
GameObject |
sensorName
Optional sensor name. This must be unique for each Agent.
Declaration
[SerializeField]
public string sensorName
Field Value
Type | Description |
---|---|
string |
Methods
CreateSensors()
Creates a PhysicsBodySensor.
Declaration
public override ISensor[] CreateSensors()
Returns
Type | Description |
---|---|
ISensor[] | Corresponding sensors. |