FMassZoneGraphCachedLaneFragment

Describes part of a ZoneGraph lane.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FMassFragment

FMassZoneGraphCachedLaneFragment

References

Module

MassAIMovement

Header

/Engine/Plugins/AI/MassAI/Source/MassAIMovement/Public/MassZoneGraphMovementFragments.h

Include

#include "MassZoneGraphMovementFragments.h"

Syntax

USTRUCT()
struct FMassZoneGraphCachedLaneFragment : public FMassFragment

Remarks

Describes part of a ZoneGraph lane.

Variables

Name Description

Public variable

uint16

 

CacheID

ID incremented each time the cache is updated.

Public variable

FZoneGraphLaneH...

 

LaneHandle

Public variable

FMassInt16Real

 

LaneLeftSpace

Additional space left of the lane

Public variable

float

 

LaneLength

Cached length of the lane.

Public variable

TStaticArray< F...

 

LanePointProgressions

Lane Advance distances

Public variable

TStaticArray< F...

 

LanePoints

Lane points

Public variable

FMassInt16Real

 

LaneRightSpace

Additional space right of the lane

Public variable

TStaticArray< F...

 

LaneTangentVectors

Lane tangents

Public variable

FMassInt16Real

 

LaneWidth

Cached width of the lane.

Public variable

uint8

 

NumPoints

Number of points on path.

Functions

Name Description

Public function

void

 

CacheLaneData

(
    const FZoneGraphStorage& ZoneGraph...,
    const FZoneGraphLaneHandle CurrentL...,
    const float CurrentDistanceAlongLan...,
    const float TargetDistanceAlongLane,
    const float InflateDistance
)

Caches portion of a lane from ZoneGraph.

Public function Const

int32

 

FindSegmentIndexAtDistance

(
    const float DistanceAlongPath
)

Public function Const

float

 

GetInterpolationTimeOnSegment

(
    const int32 SegmentIndex,
    const float DistanceAlongPath
)

Public function Const

void

 

GetPointAndTangentAtDistance

(
    const float DistanceAlongPath,
    FVector& OutPoint,
    FVector& OutTangent
)

Public function Const

FVector

 

GetPointAtDistance

(
    const float DistanceAlongPath
)

Public function Const

void

 

InterpolatePointAndTangentOnSegment

(
    const int32 SegmentIndex,
    const float DistanceAlongPath,
    FVector& OutPoint,
    FVector& OutTangent
)

Public function Const

FVector

 

InterpolatePointOnSegment

(
    const int32 SegmentIndex,
    const float DistanceAlongPath
)

Public function Const

bool

 

IsDistanceAtLaneExtrema

(
    const float Distance
)

Public function

void

 

Reset()

Constants

Name

Description

MaxPoints