mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
87 lines
4.2 KiB
C#
87 lines
4.2 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using Brutal.Interop;
|
|
using Brutal.Numerics;
|
|
namespace Brutal.JoltApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L93">Jolt/Physics/Collision/CollideShape.h:93</see>
|
|
/// <br/>
|
|
/// <c>class CollideShapeSettings : public CollideSettingsBase</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Settings to be passed with a collision query
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct CollideShapeSettings : IDisposable
|
|
{
|
|
public static CollideShapeSettings Create() => Jolt.PInvoke.CollideShapeSettings_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L100">Jolt/Physics/Collision/CollideShape.h:100</see>
|
|
/// <br/>
|
|
/// <c>float mMaxSeparationDistance = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// When &gt; 0 contacts in the vicinity of the query shape can be found. All nearest contacts that are not further away than this distance will be found.
|
|
/// Note that in this case CollideShapeResult::mPenetrationDepth can become negative to indicate that objects are not overlapping. (unit: meter)
|
|
/// </code>
|
|
/// </remarks>
|
|
public float GetMaxSeparationDistance() => Jolt.PInvoke.CollideShapeSettings_GetMaxSeparationDistance(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L100">Jolt/Physics/Collision/CollideShape.h:100</see>
|
|
/// <br/>
|
|
/// <c>float mMaxSeparationDistance = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// When &gt; 0 contacts in the vicinity of the query shape can be found. All nearest contacts that are not further away than this distance will be found.
|
|
/// Note that in this case CollideShapeResult::mPenetrationDepth can become negative to indicate that objects are not overlapping. (unit: meter)
|
|
/// </code>
|
|
/// </remarks>
|
|
public void SetMaxSeparationDistance(float value) => Jolt.PInvoke.CollideShapeSettings_SetMaxSeparationDistance(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L103">Jolt/Physics/Collision/CollideShape.h:103</see>
|
|
/// <br/>
|
|
/// <c>EBackFaceMode mBackFaceMode = EBackFaceMode::IgnoreBackFaces</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// How backfacing triangles should be treated
|
|
/// </para>
|
|
/// </remarks>
|
|
public EBackFaceMode GetBackFaceMode() => Jolt.PInvoke.CollideShapeSettings_GetBackFaceMode(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L103">Jolt/Physics/Collision/CollideShape.h:103</see>
|
|
/// <br/>
|
|
/// <c>EBackFaceMode mBackFaceMode = EBackFaceMode::IgnoreBackFaces</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// How backfacing triangles should be treated
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetBackFaceMode(EBackFaceMode value) => Jolt.PInvoke.CollideShapeSettings_SetBackFaceMode(this, value);
|
|
public static implicit operator CollideSettingsBase(CollideShapeSettings value) => Jolt.PInvoke.CollideShapeSettings_AsCollideSettingsBase(value);
|
|
public void Dispose() => Jolt.PInvoke.CollideShapeSettings_Destroy(this);
|
|
}
|
|
}
|