//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
public static partial class Jolt
{
public static unsafe partial class PInvoke
{
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MeshShape.h:28
///
/// MeshShapeSettings() = default
///
///
///
///
/// Default constructor for deserialization
///
///
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_Create")]
public static partial MeshShapeSettings MeshShapeSettings_Create();
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MeshShape.h:24
///
///
///
///
///
///
/// The returned handle is borrowed from its owner; don't Dispose it.
///
///
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_GetRTTI")]
public static partial RTTI MeshShapeSettings_GetRTTI(MeshShapeSettings self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MeshShape.h:24
///
///
///
///
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_CastTo")]
public static partial void* MeshShapeSettings_CastTo(MeshShapeSettings self, RTTI rTTI);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MeshShape.h:35
///
/// void Sanitize()
///
///
///
///
/// Sanitize the mesh data. Remove duplicate and degenerate triangles. This is called automatically when
/// constructing the MeshShapeSettings with a list of (indexed-) triangles.
///
///
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_Sanitize")]
public static partial void MeshShapeSettings_Sanitize(MeshShapeSettings self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MeshShape.h:38
///
/// virtual ShapeResult Create() const override
///
///
///
///
/// See: ShapeSettings
///
///
/// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message.
///
///
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_CreateShape")]
public static partial Shape MeshShapeSettings_CreateShape(MeshShapeSettings self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MeshShape.h:56
///
/// uint mMaxTrianglesPerLeaf = 8
///
///
///
///
/// Maximum number of triangles in each leaf of the axis aligned box tree. This is a balance between memory and performance. Can be in the range [1, MeshShape::MaxTrianglesPerLeaf].
/// Sensible values are between 4 (for better performance) and 8 (for less memory usage).
///
///
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_GetMaxTrianglesPerLeaf")]
public static partial uint MeshShapeSettings_GetMaxTrianglesPerLeaf(MeshShapeSettings self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MeshShape.h:56
///
/// uint mMaxTrianglesPerLeaf = 8
///
///
///
///
/// Maximum number of triangles in each leaf of the axis aligned box tree. This is a balance between memory and performance. Can be in the range [1, MeshShape::MaxTrianglesPerLeaf].
/// Sensible values are between 4 (for better performance) and 8 (for less memory usage).
///
///
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_SetMaxTrianglesPerLeaf")]
public static partial void MeshShapeSettings_SetMaxTrianglesPerLeaf(MeshShapeSettings self, uint value);
///
///
/// cos(5 degrees)
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MeshShape.h:63
///
/// float mActiveEdgeCosThresholdAngle = 0.996195f
///
///
///
///
/// Cosine of the threshold angle (if the angle between the two triangles is bigger than this, the edge is active, note that a concave edge is always inactive).
/// Setting this value too small can cause ghost collisions with edges, setting it too big can cause depenetration artifacts (objects not depenetrating quickly).
/// Valid ranges are between cos(0 degrees) and cos(90 degrees). The default value is cos(5 degrees).
/// Negative values will make all edges active and causes EActiveEdgeMode::CollideOnlyWithActive to behave as EActiveEdgeMode::CollideWithAll.
/// This speeds up the build process but will require all bodies that can interact with the mesh to use BodyCreationSettings::mEnhancedInternalEdgeRemoval = true.
///
///
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_GetActiveEdgeCosThresholdAngle")]
public static partial float MeshShapeSettings_GetActiveEdgeCosThresholdAngle(MeshShapeSettings self);
///
///
/// cos(5 degrees)
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MeshShape.h:63
///
/// float mActiveEdgeCosThresholdAngle = 0.996195f
///
///
///
///
/// Cosine of the threshold angle (if the angle between the two triangles is bigger than this, the edge is active, note that a concave edge is always inactive).
/// Setting this value too small can cause ghost collisions with edges, setting it too big can cause depenetration artifacts (objects not depenetrating quickly).
/// Valid ranges are between cos(0 degrees) and cos(90 degrees). The default value is cos(5 degrees).
/// Negative values will make all edges active and causes EActiveEdgeMode::CollideOnlyWithActive to behave as EActiveEdgeMode::CollideWithAll.
/// This speeds up the build process but will require all bodies that can interact with the mesh to use BodyCreationSettings::mEnhancedInternalEdgeRemoval = true.
///
///
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_SetActiveEdgeCosThresholdAngle")]
public static partial void MeshShapeSettings_SetActiveEdgeCosThresholdAngle(MeshShapeSettings self, float value);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MeshShape.h:69
///
/// bool mPerTriangleUserData = false
///
///
///
///
/// When true, we store the user data coming from Triangle::mUserData or IndexedTriangle::mUserData in the mesh shape.
/// This can be used to store additional data like the original index of the triangle in the mesh.
/// Can be retrieved using MeshShape::GetTriangleUserData.
/// Turning this on increases the memory used by the MeshShape by roughly 25%.
///
///
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_GetPerTriangleUserData")]
public static partial Brutal.Bool8 MeshShapeSettings_GetPerTriangleUserData(MeshShapeSettings self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MeshShape.h:69
///
/// bool mPerTriangleUserData = false
///
///
///
///
/// When true, we store the user data coming from Triangle::mUserData or IndexedTriangle::mUserData in the mesh shape.
/// This can be used to store additional data like the original index of the triangle in the mesh.
/// Can be retrieved using MeshShape::GetTriangleUserData.
/// Turning this on increases the memory used by the MeshShape by roughly 25%.
///
///
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_SetPerTriangleUserData")]
public static partial void MeshShapeSettings_SetPerTriangleUserData(MeshShapeSettings self, Brutal.Bool8 value);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MeshShape.h:78
///
/// EBuildQuality mBuildQuality = EBuildQuality::FavorRuntimePerformance
///
///
///
///
/// Determines the quality of the tree building process.
///
///
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_GetBuildQuality")]
public static partial MeshShapeSettings.EBuildQuality MeshShapeSettings_GetBuildQuality(MeshShapeSettings self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MeshShape.h:78
///
/// EBuildQuality mBuildQuality = EBuildQuality::FavorRuntimePerformance
///
///
///
///
/// Determines the quality of the tree building process.
///
///
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_SetBuildQuality")]
public static partial void MeshShapeSettings_SetBuildQuality(MeshShapeSettings self, MeshShapeSettings.EBuildQuality value);
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_AddRef")]
public static partial void MeshShapeSettings_AddRef(MeshShapeSettings self);
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_Release")]
public static partial void MeshShapeSettings_Release(MeshShapeSettings self);
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_GetRefCount")]
public static partial uint MeshShapeSettings_GetRefCount(MeshShapeSettings self);
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_AsShapeSettings")]
public static partial ShapeSettings MeshShapeSettings_AsShapeSettings(MeshShapeSettings self);
}
}
}