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

Public Types

enum  WorldPositionEnforcedCache {
  None ,
  NavMeshVec3 ,
  GroundVec3
}
 

Public Member Functions

 WorldPosition (Scene scene, Vec3 position)
 
 WorldPosition (Scene scene, UIntPtr navMesh, Vec3 position, bool hasValidZ)
 
void SetVec3 (UIntPtr navMesh, Vec3 position, bool hasValidZ)
 
UIntPtr GetNavMesh ()
 
UIntPtr GetNearestNavMesh ()
 
float GetNavMeshZ ()
 
float GetNavMeshZMT ()
 
float GetGroundZ ()
 
float GetGroundZMT ()
 
Vec3 GetNavMeshVec3 ()
 
Vec3 GetNavMeshVec3MT ()
 
Vec3 GetGroundVec3 ()
 
Vec3 GetGroundVec3MT ()
 
void SetVec2 (Vec2 value)
 
float DistanceSquaredWithLimit (in Vec3 targetPoint, float limitSquared)
 

Public Attributes

Vec3 Normal
 
ZValidityState State
 

Static Public Attributes

static readonly WorldPosition Invalid = new WorldPosition(UIntPtr.Zero, UIntPtr.Zero, Vec3.Invalid, false)
 

Properties

Vec2 AsVec2 [get]
 
float X [get]
 
float Y [get]
 
bool IsValid [get]
 

Member Enumeration Documentation

◆ WorldPositionEnforcedCache

Enumerator
None 
NavMeshVec3 
GroundVec3 

Constructor & Destructor Documentation

◆ WorldPosition() [1/2]

TaleWorlds.Engine.WorldPosition.WorldPosition ( Scene  scene,
Vec3  position 
)

◆ WorldPosition() [2/2]

TaleWorlds.Engine.WorldPosition.WorldPosition ( Scene  scene,
UIntPtr  navMesh,
Vec3  position,
bool  hasValidZ 
)

Member Function Documentation

◆ SetVec3()

void TaleWorlds.Engine.WorldPosition.SetVec3 ( UIntPtr  navMesh,
Vec3  position,
bool  hasValidZ 
)

◆ GetNavMesh()

UIntPtr TaleWorlds.Engine.WorldPosition.GetNavMesh ( )

◆ GetNearestNavMesh()

UIntPtr TaleWorlds.Engine.WorldPosition.GetNearestNavMesh ( )

◆ GetNavMeshZ()

float TaleWorlds.Engine.WorldPosition.GetNavMeshZ ( )

◆ GetNavMeshZMT()

float TaleWorlds.Engine.WorldPosition.GetNavMeshZMT ( )

◆ GetGroundZ()

float TaleWorlds.Engine.WorldPosition.GetGroundZ ( )

◆ GetGroundZMT()

float TaleWorlds.Engine.WorldPosition.GetGroundZMT ( )

◆ GetNavMeshVec3()

Vec3 TaleWorlds.Engine.WorldPosition.GetNavMeshVec3 ( )

◆ GetNavMeshVec3MT()

Vec3 TaleWorlds.Engine.WorldPosition.GetNavMeshVec3MT ( )

◆ GetGroundVec3()

Vec3 TaleWorlds.Engine.WorldPosition.GetGroundVec3 ( )

◆ GetGroundVec3MT()

Vec3 TaleWorlds.Engine.WorldPosition.GetGroundVec3MT ( )

◆ SetVec2()

void TaleWorlds.Engine.WorldPosition.SetVec2 ( Vec2  value)

◆ DistanceSquaredWithLimit()

float TaleWorlds.Engine.WorldPosition.DistanceSquaredWithLimit ( in Vec3  targetPoint,
float  limitSquared 
)

Member Data Documentation

◆ Normal

Vec3 TaleWorlds.Engine.WorldPosition.Normal

◆ State

ZValidityState TaleWorlds.Engine.WorldPosition.State

◆ Invalid

readonly WorldPosition TaleWorlds.Engine.WorldPosition.Invalid = new WorldPosition(UIntPtr.Zero, UIntPtr.Zero, Vec3.Invalid, false)
static

Property Documentation

◆ AsVec2

Vec2 TaleWorlds.Engine.WorldPosition.AsVec2
get

◆ X

float TaleWorlds.Engine.WorldPosition.X
get

◆ Y

float TaleWorlds.Engine.WorldPosition.Y
get

◆ IsValid

bool TaleWorlds.Engine.WorldPosition.IsValid
get