M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Engine.Path Class Reference

Inherits NativeObject.

Public Member Functions

MatrixFrame GetHermiteFrameForDt (float phase, int first_point)
 
MatrixFrame GetFrameForDistance (float distance)
 
MatrixFrame GetNearestFrameWithValidAlphaForDistance (float distance, bool searchForward=true, float alphaThreshold=0.5f)
 
void GetFrameAndColorForDistance (float distance, out MatrixFrame frame, out Vec3 color)
 
float GetArcLength (int first_point)
 
void GetPoints (MatrixFrame[] points)
 
float GetTotalLength ()
 
int GetVersion ()
 
void SetFrameOfPoint (int pointIndex, ref MatrixFrame frame)
 
void SetTangentPositionOfPoint (int pointIndex, int tangentIndex, ref Vec3 position)
 
int AddPathPoint (int newNodeIndex)
 
void DeletePathPoint (int nodeIndex)
 
bool HasValidAlphaAtPathPoint (int nodeIndex, float alphaThreshold=0.5f)
 
string GetName ()
 

Properties

int NumberOfPoints [get]
 
float TotalDistance [get]
 

Member Function Documentation

◆ GetHermiteFrameForDt()

MatrixFrame TaleWorlds.Engine.Path.GetHermiteFrameForDt ( float  phase,
int  first_point 
)

◆ GetFrameForDistance()

MatrixFrame TaleWorlds.Engine.Path.GetFrameForDistance ( float  distance)

◆ GetNearestFrameWithValidAlphaForDistance()

MatrixFrame TaleWorlds.Engine.Path.GetNearestFrameWithValidAlphaForDistance ( float  distance,
bool  searchForward = true,
float  alphaThreshold = 0::5f 
)

◆ GetFrameAndColorForDistance()

void TaleWorlds.Engine.Path.GetFrameAndColorForDistance ( float  distance,
out MatrixFrame  frame,
out Vec3  color 
)

◆ GetArcLength()

float TaleWorlds.Engine.Path.GetArcLength ( int  first_point)

◆ GetPoints()

void TaleWorlds.Engine.Path.GetPoints ( MatrixFrame[]  points)

◆ GetTotalLength()

float TaleWorlds.Engine.Path.GetTotalLength ( )

◆ GetVersion()

int TaleWorlds.Engine.Path.GetVersion ( )

◆ SetFrameOfPoint()

void TaleWorlds.Engine.Path.SetFrameOfPoint ( int  pointIndex,
ref MatrixFrame  frame 
)

◆ SetTangentPositionOfPoint()

void TaleWorlds.Engine.Path.SetTangentPositionOfPoint ( int  pointIndex,
int  tangentIndex,
ref Vec3  position 
)

◆ AddPathPoint()

int TaleWorlds.Engine.Path.AddPathPoint ( int  newNodeIndex)

◆ DeletePathPoint()

void TaleWorlds.Engine.Path.DeletePathPoint ( int  nodeIndex)

◆ HasValidAlphaAtPathPoint()

bool TaleWorlds.Engine.Path.HasValidAlphaAtPathPoint ( int  nodeIndex,
float  alphaThreshold = 0::5f 
)

◆ GetName()

string TaleWorlds.Engine.Path.GetName ( )

Property Documentation

◆ NumberOfPoints

int TaleWorlds.Engine.Path.NumberOfPoints
get

◆ TotalDistance

float TaleWorlds.Engine.Path.TotalDistance
get