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
WorldPosition(Scene, Vec3)
public WorldPosition(Scene scene, Vec3 position)
Parameters
Fields
Invalid
public static readonly WorldPosition Invalid
Field Value
Normal
[CustomEngineStructMemberData("normal_")]
public Vec3 Normal
Field Value
State
[CustomEngineStructMemberData("z_validity_state_")]
public ZValidityState State
Field Value
Properties
AsVec2
public Vec2 AsVec2 { get; }
Property Value
IsValid
public bool IsValid { get; }
Property Value
X
public float X { get; }
Property Value
Y
public float Y { get; }
Property Value
Methods
DistanceSquaredWithLimit(in Vec3, float)
public float DistanceSquaredWithLimit(in Vec3 targetPoint, float limitSquared)
Parameters
Returns
GetGroundVec3()
public Vec3 GetGroundVec3()
Returns
GetGroundVec3MT()
public Vec3 GetGroundVec3MT()
Returns
GetGroundZ()
public float GetGroundZ()
Returns
GetGroundZMT()
public float GetGroundZMT()
Returns
GetNavMesh()
public UIntPtr GetNavMesh()
Returns
GetNavMeshVec3()
public Vec3 GetNavMeshVec3()
Returns
GetNavMeshVec3MT()
public Vec3 GetNavMeshVec3MT()
Returns
GetNavMeshZ()
public float GetNavMeshZ()
Returns
GetNavMeshZMT()
public float GetNavMeshZMT()
Returns
GetNearestNavMesh()
public UIntPtr GetNearestNavMesh()
Returns
SetVec2(Vec2)
public void SetVec2(Vec2 value)
Parameters
value
Vec2
SetVec3(UIntPtr, Vec3, bool)
public void SetVec3(UIntPtr navMesh, Vec3 position, bool hasValidZ)
Parameters
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).