Navigation
API > API/Plugins > API/Plugins/MassAIBehavior
Struct that holds all parameters of the current entity look at
| Name | FMassLookAtFragment |
| Type | struct |
| Header File | /Engine/Plugins/AI/MassAI/Source/MassAIBehavior/Public/MassLookAtFragments.h |
| Include Path | #include "MassLookAtFragments.h" |
Syntax
USTRUCT ()
struct FMassLookAtFragment : public FMassFragment
Inheritance Hierarchy
- FMassFragment → FMassLookAtFragment
Enums
Public
| Name | Remarks |
|---|---|
| EOverrideState |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bRandomGazeEntities | uint8 | Whether random gaze can also pick interesting entities to look at. | MassLookAtFragments.h |
|
| CustomInterpolationSpeed | float | Primary look at custom interpolation speed used when 'InterpolationSpeed = EMassLookAtInterpolationSpeed::Custom' (not used by the LookAt processor but can be forwarded to the animation system). | MassLookAtFragments.h |
|
| Direction | FVector | Current look at direction (with gaze applied). | MassLookAtFragments.h |
|
| GazeDirection | FVector | Current gaze direction, applied on top of look at direction based on gaze mode. | MassLookAtFragments.h |
|
| GazeDuration | float | Duration of the current gaze. | MassLookAtFragments.h |
|
| GazeStartTime | double | Start time of the current gaze. | MassLookAtFragments.h |
|
| GazeTargetLocation | FVector | Current gaze target location. | MassLookAtFragments.h |
|
| GazeTrackedEntity | FMassEntityHandle | Entity that is tracked as part of gazing. | MassLookAtFragments.h |
|
| InterpolationSpeed | EMassLookAtInterpolationSpeed | Primary look at interpolation speed (not used by the LookAt processor but can be forwarded to the animation system). | MassLookAtFragments.h |
|
| LastSeenActionID | uint16 | Last seen action ID, used to check when look at trajectory needs to be updated. | MassLookAtFragments.h |
|
| LookAtMode | EMassLookAtMode | Primary look at mode. | MassLookAtFragments.h |
|
| MainTargetLocation | FVector | Current look at main target location. | MassLookAtFragments.h |
|
| OverrideState | EOverrideState | Current state based on the systemic task and active overrides | MassLookAtFragments.h | |
| RandomGazeMode | EMassLookAtGazeMode | Gaze look at mode. | MassLookAtFragments.h |
|
| RandomGazePitchVariation | uint8 | Random gaze angle pitch variation (in degrees). | MassLookAtFragments.h |
|
| RandomGazeYawVariation | uint8 | Random gaze angle yaw variation (in degrees). | MassLookAtFragments.h |
|
| TrackedEntity | FMassEntityHandle | Specific entity that is being tracked as primary look at. | MassLookAtFragments.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ResetAll() |
Resets all properties in the fragment to their default values | MassLookAtFragments.h | |
void ResetGaze() |
Resets gaze related properties in the fragment to their default values | MassLookAtFragments.h | |
void ResetMainLookAt() |
Resets main LookAt related properties in the fragment to their default values | MassLookAtFragments.h | |
void ResetSystemicLookAt() |
Resets gaze and main LookAt (if override not active) related properties in the fragment to their default values | MassLookAtFragments.h |