Table of Contents

Struct WorldPosition

Namespace
TaleWorlds.Engine
Assembly
TaleWorlds.Engine.dll
[EngineStruct("rglWorld_position::Plain_world_position", false)]
public struct WorldPosition
Inherited Members
Extension Methods

Constructors

WorldPosition(Scene, UIntPtr, Vec3, bool)

public WorldPosition(Scene scene, UIntPtr navMesh, Vec3 position, bool hasValidZ)

Parameters

scene Scene
navMesh UIntPtr
position Vec3
hasValidZ bool

WorldPosition(Scene, Vec3)

public WorldPosition(Scene scene, Vec3 position)

Parameters

scene Scene
position Vec3

Fields

Invalid

public static readonly WorldPosition Invalid

Field Value

WorldPosition

Normal

[CustomEngineStructMemberData("normal_")]
public Vec3 Normal

Field Value

Vec3

State

[CustomEngineStructMemberData("z_validity_state_")]
public ZValidityState State

Field Value

ZValidityState

Properties

AsVec2

public Vec2 AsVec2 { get; }

Property Value

Vec2

IsValid

public bool IsValid { get; }

Property Value

bool

X

public float X { get; }

Property Value

float

Y

public float Y { get; }

Property Value

float

Methods

DistanceSquaredWithLimit(in Vec3, float)

public float DistanceSquaredWithLimit(in Vec3 targetPoint, float limitSquared)

Parameters

targetPoint Vec3
limitSquared float

Returns

float

GetGroundVec3()

public Vec3 GetGroundVec3()

Returns

Vec3

GetGroundVec3MT()

public Vec3 GetGroundVec3MT()

Returns

Vec3

GetGroundZ()

public float GetGroundZ()

Returns

float

GetGroundZMT()

public float GetGroundZMT()

Returns

float

GetNavMesh()

public UIntPtr GetNavMesh()

Returns

UIntPtr

GetNavMeshVec3()

public Vec3 GetNavMeshVec3()

Returns

Vec3

GetNavMeshVec3MT()

public Vec3 GetNavMeshVec3MT()

Returns

Vec3

GetNavMeshZ()

public float GetNavMeshZ()

Returns

float

GetNavMeshZMT()

public float GetNavMeshZMT()

Returns

float

GetNearestNavMesh()

public UIntPtr GetNearestNavMesh()

Returns

UIntPtr

SetVec2(Vec2)

public void SetVec2(Vec2 value)

Parameters

value Vec2

SetVec3(UIntPtr, Vec3, bool)

public void SetVec3(UIntPtr navMesh, Vec3 position, bool hasValidZ)

Parameters

navMesh UIntPtr
position Vec3
hasValidZ bool

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).