//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:93
///
/// class CollideShapeSettings : public CollideSettingsBase
///
///
///
///
/// Settings to be passed with a collision query
///
///
[InteropHandle]
public readonly partial struct CollideShapeSettings : IDisposable
{
public static CollideShapeSettings Create() => Jolt.PInvoke.CollideShapeSettings_Create();
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:100
///
/// float mMaxSeparationDistance = 0.0f
///
///
///
///
/// When > 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)
///
///
public float GetMaxSeparationDistance() => Jolt.PInvoke.CollideShapeSettings_GetMaxSeparationDistance(this);
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:100
///
/// float mMaxSeparationDistance = 0.0f
///
///
///
///
/// When > 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)
///
///
public void SetMaxSeparationDistance(float value) => Jolt.PInvoke.CollideShapeSettings_SetMaxSeparationDistance(this, value);
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:103
///
/// EBackFaceMode mBackFaceMode = EBackFaceMode::IgnoreBackFaces
///
///
///
///
/// How backfacing triangles should be treated
///
///
public EBackFaceMode GetBackFaceMode() => Jolt.PInvoke.CollideShapeSettings_GetBackFaceMode(this);
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:103
///
/// EBackFaceMode mBackFaceMode = EBackFaceMode::IgnoreBackFaces
///
///
///
///
/// How backfacing triangles should be treated
///
///
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);
}
}