M&B: Bannerlord 1.2.9
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Engine.PhysicsShape Class Referencesealed

Inherits TaleWorlds.Engine.Resource.

Public Member Functions

PhysicsShape CreateCopy ()
 
int SphereCount ()
 
void GetSphere (ref SphereData data, int index)
 
void GetSphere (ref SphereData data, out PhysicsMaterial material, int index)
 
PhysicsMaterial GetDominantMaterialForTriangleMesh (int meshIndex)
 
string GetName ()
 
int TriangleMeshCount ()
 
int TriangleCountInTriangleMesh (int meshIndex)
 
void GetTriangle (Vec3[] triangle, int meshIndex, int triangleIndex)
 
void Prepare ()
 
int CapsuleCount ()
 
void AddCapsule (CapsuleData data)
 
void InitDescription ()
 
void AddSphere (SphereData data)
 
void SetCapsule (CapsuleData data, int index)
 
void GetCapsule (ref CapsuleData data, int index)
 
void GetCapsule (ref CapsuleData data, out PhysicsMaterial material, int index)
 
Vec3 GetBoundingBoxCenter ()
 
void Transform (ref MatrixFrame frame)
 
void Clear ()
 

Static Public Member Functions

static PhysicsShape GetFromResource (string bodyName, bool mayReturnNull=false)
 
static void AddPreloadQueueWithName (string bodyName, Vec3 scale)
 
static void ProcessPreloadQueue ()
 
static void UnloadDynamicBodies ()
 

Additional Inherited Members

- Protected Member Functions inherited from TaleWorlds.Engine.Resource
 Resource ()
 
void CheckResourceParameter (Resource param, string paramName="")
 Check if the parameter 'param' is null or invalid and throws an exception containing 'paramName' as further information.
 
- Properties inherited from TaleWorlds.Engine.Resource
bool IsValid [get]
 

Member Function Documentation

◆ GetFromResource()

static PhysicsShape TaleWorlds.Engine.PhysicsShape.GetFromResource ( string bodyName,
bool mayReturnNull = false )
static

◆ AddPreloadQueueWithName()

static void TaleWorlds.Engine.PhysicsShape.AddPreloadQueueWithName ( string bodyName,
Vec3 scale )
static

◆ ProcessPreloadQueue()

static void TaleWorlds.Engine.PhysicsShape.ProcessPreloadQueue ( )
static

◆ UnloadDynamicBodies()

static void TaleWorlds.Engine.PhysicsShape.UnloadDynamicBodies ( )
static

◆ CreateCopy()

PhysicsShape TaleWorlds.Engine.PhysicsShape.CreateCopy ( )

◆ SphereCount()

int TaleWorlds.Engine.PhysicsShape.SphereCount ( )

◆ GetSphere() [1/2]

void TaleWorlds.Engine.PhysicsShape.GetSphere ( ref SphereData data,
int index )

◆ GetSphere() [2/2]

void TaleWorlds.Engine.PhysicsShape.GetSphere ( ref SphereData data,
out PhysicsMaterial material,
int index )

◆ GetDominantMaterialForTriangleMesh()

PhysicsMaterial TaleWorlds.Engine.PhysicsShape.GetDominantMaterialForTriangleMesh ( int meshIndex)

◆ GetName()

string TaleWorlds.Engine.PhysicsShape.GetName ( )

◆ TriangleMeshCount()

int TaleWorlds.Engine.PhysicsShape.TriangleMeshCount ( )

◆ TriangleCountInTriangleMesh()

int TaleWorlds.Engine.PhysicsShape.TriangleCountInTriangleMesh ( int meshIndex)

◆ GetTriangle()

void TaleWorlds.Engine.PhysicsShape.GetTriangle ( Vec3[] triangle,
int meshIndex,
int triangleIndex )

◆ Prepare()

void TaleWorlds.Engine.PhysicsShape.Prepare ( )

◆ CapsuleCount()

int TaleWorlds.Engine.PhysicsShape.CapsuleCount ( )

◆ AddCapsule()

void TaleWorlds.Engine.PhysicsShape.AddCapsule ( CapsuleData data)

◆ InitDescription()

void TaleWorlds.Engine.PhysicsShape.InitDescription ( )

◆ AddSphere()

void TaleWorlds.Engine.PhysicsShape.AddSphere ( SphereData data)

◆ SetCapsule()

void TaleWorlds.Engine.PhysicsShape.SetCapsule ( CapsuleData data,
int index )

◆ GetCapsule() [1/2]

void TaleWorlds.Engine.PhysicsShape.GetCapsule ( ref CapsuleData data,
int index )

◆ GetCapsule() [2/2]

void TaleWorlds.Engine.PhysicsShape.GetCapsule ( ref CapsuleData data,
out PhysicsMaterial material,
int index )

◆ GetBoundingBoxCenter()

Vec3 TaleWorlds.Engine.PhysicsShape.GetBoundingBoxCenter ( )

◆ Transform()

void TaleWorlds.Engine.PhysicsShape.Transform ( ref MatrixFrame frame)

◆ Clear()

void TaleWorlds.Engine.PhysicsShape.Clear ( )