Navigation
API > API/Plugins > API/Plugins/MLAdapter > API/Plugins/MLAdapter/Sensors
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMLAdapterAgentElement
- UMLAdapterSensor
- UMLAdapterSensor_Movement
References
| Module | MLAdapter |
| Header | /Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Public/Sensors/MLAdapterSensor_Movement.h |
| Include | #include "Sensors/MLAdapterSensor_Movement.h" |
Syntax
UCLASS (Blueprintable)
class UMLAdapterSensor_Movement : public UMLAdapterSensor
Remarks
Allows an agent to sense its avatar's location and velocity.
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32: 1 | bAbsoluteLocation | ||
| uint32: 1 | bAbsoluteVelocity | ||
| FVector | CurrentLocation | ||
| FVector | CurrentVelocity | ||
| FVector | RefLocation | ||
| FVector | RefVelocity |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMLAdapterSensor_Movement
(
const FObjectInitializer& ObjectInitializer |
Overridden from UMLAdapterSensor
| Type | Name | Description | |
|---|---|---|---|
| bool | ConfigureForAgent
(
UMLAdapterAgent& Agent |
True if config was successful. | |
| void | |||
| void | SenseImpl
(
const float DeltaTime |
Called from Sense based on TickPolicy. |
Overridden from UMLAdapterAgentElement
| Type | Name | Description | |
|---|---|---|---|
| void | Called before actuator's destruction. | ||
| TSharedPtr< FMLAdapter::FSpace > | |||
| void | OnAvatarSet
(
AActor* Avatar |