mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
478 lines
23 KiB
C#
478 lines
23 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
using Brutal.Interop;
|
|
using Brutal.Numerics;
|
|
|
|
namespace Brutal.JoltApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Class that constructs a MeshShape
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L22">Jolt/Physics/Collision/Shape/MeshShape.h:22</see>
|
|
/// <br/>
|
|
/// <c>class MeshShapeSettings final : public ShapeSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct MeshShapeSettings : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L71">Jolt/Physics/Collision/Shape/MeshShape.h:71</see>
|
|
/// <br/>
|
|
/// <c>enum class EBuildQuality</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public enum BuildQuality : int
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Favor runtime performance, takes more time to build the MeshShape but performs better
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L73">Jolt/Physics/Collision/Shape/MeshShape.h:73</see>
|
|
/// <br/>
|
|
/// <c>FavorRuntimePerformance</c>
|
|
/// </para>
|
|
/// </summary>
|
|
FavorRuntimePerformance,
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Favor build speed, build the tree faster but the MeshShape will be slower
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L74">Jolt/Physics/Collision/Shape/MeshShape.h:74</see>
|
|
/// <br/>
|
|
/// <c>FavorBuildSpeed</c>
|
|
/// </para>
|
|
/// </summary>
|
|
FavorBuildSpeed,
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Create a mesh shape.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L31">Jolt/Physics/Collision/Shape/MeshShape.h:31</see>
|
|
/// <br/>
|
|
/// <c>explicit MeshShapeSettings(const TriangleList &inTriangles, PhysicsMaterialList inMaterials = PhysicsMaterialList())</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// triangles is copied into a native container for the call; the span is only read.
|
|
/// </para>
|
|
/// <para>
|
|
/// materials is copied into a native container for the call; the span is only read.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe MeshShapeSettings Create(
|
|
ReadOnlySpan<Triangle> triangles,
|
|
ReadOnlySpan<PhysicsMaterial> materials
|
|
)
|
|
{
|
|
fixed (PhysicsMaterial* materials_fixed = materials)
|
|
fixed (Triangle* triangles_fixed = triangles)
|
|
{
|
|
return Jolt.PInvoke.MeshShapeSettings_Create(
|
|
triangles_fixed,
|
|
(nuint)triangles.Length,
|
|
materials_fixed,
|
|
(nuint)materials.Length
|
|
);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Default constructor for deserialization
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L28">Jolt/Physics/Collision/Shape/MeshShape.h:28</see>
|
|
/// <br/>
|
|
/// <c>MeshShapeSettings() = default</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static MeshShapeSettings Create() => Jolt.PInvoke.MeshShapeSettings_Create_2();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L32">Jolt/Physics/Collision/Shape/MeshShape.h:32</see>
|
|
/// <br/>
|
|
/// <c>MeshShapeSettings(VertexList inVertices, IndexedTriangleList inTriangles, PhysicsMaterialList inMaterials = PhysicsMaterialList())</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// vertices is copied into a native container for the call; the span is only read.
|
|
/// </para>
|
|
/// <para>
|
|
/// triangles is copied into a native container for the call; the span is only read.
|
|
/// </para>
|
|
/// <para>
|
|
/// materials is copied into a native container for the call; the span is only read.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe MeshShapeSettings Create(
|
|
ReadOnlySpan<float3> vertices,
|
|
ReadOnlySpan<IndexedTriangle> triangles,
|
|
ReadOnlySpan<PhysicsMaterial> materials
|
|
)
|
|
{
|
|
fixed (PhysicsMaterial* materials_fixed = materials)
|
|
fixed (IndexedTriangle* triangles_fixed = triangles)
|
|
fixed (float3* vertices_fixed = vertices)
|
|
{
|
|
return Jolt.PInvoke.MeshShapeSettings_Create_3(
|
|
vertices_fixed,
|
|
(nuint)vertices.Length,
|
|
triangles_fixed,
|
|
(nuint)triangles.Length,
|
|
materials_fixed,
|
|
(nuint)materials.Length
|
|
);
|
|
}
|
|
}
|
|
|
|
/// <inheritdoc cref="ShapeSettings.GetRTTI()"/>
|
|
public RTTI GetRTTI() => ((ShapeSettings)this).GetRTTI();
|
|
|
|
/// <inheritdoc cref="ShapeSettings.CastTo(RTTI)"/>
|
|
public unsafe Ptr CastTo(RTTI rtti) => ((ShapeSettings)this).CastTo(rtti);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Sanitize the mesh data. Remove duplicate and degenerate triangles. This is called automatically when
|
|
/// constructing the MeshShapeSettings with a list of (indexed-) triangles.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L35">Jolt/Physics/Collision/Shape/MeshShape.h:35</see>
|
|
/// <br/>
|
|
/// <c>void Sanitize()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void Sanitize() => Jolt.PInvoke.MeshShapeSettings_Sanitize(this);
|
|
|
|
/// <inheritdoc cref="ShapeSettings.CreateShape()"/>
|
|
public Shape CreateShape() => ((ShapeSettings)this).CreateShape();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Vertices belonging to mIndexedTriangles
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L41">Jolt/Physics/Collision/Shape/MeshShape.h:41</see>
|
|
/// <br/>
|
|
/// <c>VertexList mTriangleVertices</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The span is a view of the container's own storage, not a copy: edits land in the object that owns it.
|
|
/// It's only valid until that container is resized or its owner is destroyed.
|
|
/// </para>
|
|
/// </remarks>
|
|
[return: Brutal.Attributes.Fixed]
|
|
public unsafe Span<float3> GetTriangleVertices()
|
|
{
|
|
Jolt.PInvoke.MeshShapeSettings_GetTriangleVertices(this, out var _outResult);
|
|
return new Span<float3>((void*)_outResult.Data, checked((int)_outResult.Count));
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Vertices belonging to mIndexedTriangles
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L41">Jolt/Physics/Collision/Shape/MeshShape.h:41</see>
|
|
/// <br/>
|
|
/// <c>VertexList mTriangleVertices</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public unsafe void SetTriangleVertices(ReadOnlySpan<float3> value)
|
|
{
|
|
fixed (float3* value_fixed = value)
|
|
{
|
|
Jolt.PInvoke.MeshShapeSettings_SetTriangleVertices(this, value_fixed, (nuint)value.Length);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Original list of indexed triangles (triangles will be reordered internally in the mesh shape). Triangles
|
|
/// must be provided in counter clockwise order. Degenerate triangles will automatically be removed during
|
|
/// mesh creation but no other mesh simplifications are performed, use an external library if this is
|
|
/// desired. For simulation, the triangles are considered to be single sided. For ray casts you can choose
|
|
/// to make triangles double sided by setting RayCastSettings::mBackFaceMode to
|
|
/// EBackFaceMode::CollideWithBackFaces. For collide shape tests you can use
|
|
/// CollideShapeSettings::mBackFaceMode and for shape casts you can use
|
|
/// ShapeCastSettings::mBackFaceModeTriangles.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L49">Jolt/Physics/Collision/Shape/MeshShape.h:49</see>
|
|
/// <br/>
|
|
/// <c>IndexedTriangleList mIndexedTriangles</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The span is a view of the container's own storage, not a copy: edits land in the object that owns it.
|
|
/// It's only valid until that container is resized or its owner is destroyed.
|
|
/// </para>
|
|
/// </remarks>
|
|
[return: Brutal.Attributes.Fixed]
|
|
public unsafe Span<IndexedTriangle> GetIndexedTriangles()
|
|
{
|
|
Jolt.PInvoke.MeshShapeSettings_GetIndexedTriangles(this, out var _outResult);
|
|
return new Span<IndexedTriangle>((void*)_outResult.Data, checked((int)_outResult.Count));
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Original list of indexed triangles (triangles will be reordered internally in the mesh shape). Triangles
|
|
/// must be provided in counter clockwise order. Degenerate triangles will automatically be removed during
|
|
/// mesh creation but no other mesh simplifications are performed, use an external library if this is
|
|
/// desired. For simulation, the triangles are considered to be single sided. For ray casts you can choose
|
|
/// to make triangles double sided by setting RayCastSettings::mBackFaceMode to
|
|
/// EBackFaceMode::CollideWithBackFaces. For collide shape tests you can use
|
|
/// CollideShapeSettings::mBackFaceMode and for shape casts you can use
|
|
/// ShapeCastSettings::mBackFaceModeTriangles.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L49">Jolt/Physics/Collision/Shape/MeshShape.h:49</see>
|
|
/// <br/>
|
|
/// <c>IndexedTriangleList mIndexedTriangles</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public unsafe void SetIndexedTriangles(ReadOnlySpan<IndexedTriangle> value)
|
|
{
|
|
fixed (IndexedTriangle* value_fixed = value)
|
|
{
|
|
Jolt.PInvoke.MeshShapeSettings_SetIndexedTriangles(this, value_fixed, (nuint)value.Length);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Materials assigned to the triangles. Each triangle specifies which material it uses through its
|
|
/// mMaterialIndex
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L52">Jolt/Physics/Collision/Shape/MeshShape.h:52</see>
|
|
/// <br/>
|
|
/// <c>PhysicsMaterialList mMaterials</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Returns an owned native buffer - read it through AsSpan() and Dispose it when you are done with it. The
|
|
/// handles in it are borrowed views into the buffer: they stay valid until Dispose and must not be disposed
|
|
/// themselves.
|
|
/// </para>
|
|
/// </remarks>
|
|
public NativeArray<PhysicsMaterial> GetMaterials() =>
|
|
new NativeArray<PhysicsMaterial>(Jolt.PInvoke.MeshShapeSettings_GetMaterials(this));
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Materials assigned to the triangles. Each triangle specifies which material it uses through its
|
|
/// mMaterialIndex
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L52">Jolt/Physics/Collision/Shape/MeshShape.h:52</see>
|
|
/// <br/>
|
|
/// <c>PhysicsMaterialList mMaterials</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public unsafe void SetMaterials(ReadOnlySpan<PhysicsMaterial> value)
|
|
{
|
|
fixed (PhysicsMaterial* value_fixed = value)
|
|
{
|
|
Jolt.PInvoke.MeshShapeSettings_SetMaterials(this, value_fixed, (nuint)value.Length);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L56">Jolt/Physics/Collision/Shape/MeshShape.h:56</see>
|
|
/// <br/>
|
|
/// <c>uint mMaxTrianglesPerLeaf = 8</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetMaxTrianglesPerLeaf() => Jolt.PInvoke.MeshShapeSettings_GetMaxTrianglesPerLeaf(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L56">Jolt/Physics/Collision/Shape/MeshShape.h:56</see>
|
|
/// <br/>
|
|
/// <c>uint mMaxTrianglesPerLeaf = 8</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxTrianglesPerLeaf(uint value) =>
|
|
Jolt.PInvoke.MeshShapeSettings_SetMaxTrianglesPerLeaf(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// cos(5 degrees)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L63">Jolt/Physics/Collision/Shape/MeshShape.h:63</see>
|
|
/// <br/>
|
|
/// <c>float mActiveEdgeCosThresholdAngle = 0.996195f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
public float GetActiveEdgeCosThresholdAngle() =>
|
|
Jolt.PInvoke.MeshShapeSettings_GetActiveEdgeCosThresholdAngle(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// cos(5 degrees)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L63">Jolt/Physics/Collision/Shape/MeshShape.h:63</see>
|
|
/// <br/>
|
|
/// <c>float mActiveEdgeCosThresholdAngle = 0.996195f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
public void SetActiveEdgeCosThresholdAngle(float value) =>
|
|
Jolt.PInvoke.MeshShapeSettings_SetActiveEdgeCosThresholdAngle(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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%.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L69">Jolt/Physics/Collision/Shape/MeshShape.h:69</see>
|
|
/// <br/>
|
|
/// <c>bool mPerTriangleUserData = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public bool GetPerTriangleUserData() => Jolt.PInvoke.MeshShapeSettings_GetPerTriangleUserData(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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%.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L69">Jolt/Physics/Collision/Shape/MeshShape.h:69</see>
|
|
/// <br/>
|
|
/// <c>bool mPerTriangleUserData = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetPerTriangleUserData(bool value) =>
|
|
Jolt.PInvoke.MeshShapeSettings_SetPerTriangleUserData(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Determines the quality of the tree building process.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L78">Jolt/Physics/Collision/Shape/MeshShape.h:78</see>
|
|
/// <br/>
|
|
/// <c>EBuildQuality mBuildQuality = EBuildQuality::FavorRuntimePerformance</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public MeshShapeSettings.BuildQuality GetBuildQuality() => Jolt.PInvoke.MeshShapeSettings_GetBuildQuality(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Determines the quality of the tree building process.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L78">Jolt/Physics/Collision/Shape/MeshShape.h:78</see>
|
|
/// <br/>
|
|
/// <c>EBuildQuality mBuildQuality = EBuildQuality::FavorRuntimePerformance</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetBuildQuality(MeshShapeSettings.BuildQuality value) =>
|
|
Jolt.PInvoke.MeshShapeSettings_SetBuildQuality(this, value);
|
|
|
|
public void AddRef() => ((ShapeSettings)this).AddRef();
|
|
|
|
public void Release() => ((ShapeSettings)this).Release();
|
|
|
|
public uint GetRefCount() => ((ShapeSettings)this).GetRefCount();
|
|
|
|
public static implicit operator ShapeSettings(MeshShapeSettings value) =>
|
|
Unsafe.BitCast<MeshShapeSettings, ShapeSettings>(value);
|
|
|
|
public void Dispose()
|
|
{
|
|
if (IsNull())
|
|
return;
|
|
Release();
|
|
}
|
|
|
|
/// <inheritdoc cref="ShapeSettings.ClearCachedResult()"/>
|
|
public void ClearCachedResult() => ((ShapeSettings)this).ClearCachedResult();
|
|
|
|
/// <inheritdoc cref="ShapeSettings.GetUserData()"/>
|
|
public ulong GetUserData() => ((ShapeSettings)this).GetUserData();
|
|
|
|
/// <inheritdoc cref="ShapeSettings.SetUserData(ulong)"/>
|
|
public void SetUserData(ulong value) => ((ShapeSettings)this).SetUserData(value);
|
|
}
|
|
}
|