//
// 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
{
///
///
/// Settings to be passed with a collision query
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:93
///
/// class CollideShapeSettings : public CollideSettingsBase
///
///
[InteropHandle]
public readonly partial struct CollideShapeSettings : IDisposable
{
public static CollideShapeSettings Create() => Jolt.PInvoke.CollideShapeSettings_Create();
///
///
/// 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)
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:100
///
/// float mMaxSeparationDistance = 0.0f
///
///
public float GetMaxSeparationDistance() => Jolt.PInvoke.CollideShapeSettings_GetMaxSeparationDistance(this);
///
///
/// 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)
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:100
///
/// float mMaxSeparationDistance = 0.0f
///
///
public void SetMaxSeparationDistance(float value) =>
Jolt.PInvoke.CollideShapeSettings_SetMaxSeparationDistance(this, value);
///
///
/// How backfacing triangles should be treated
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:103
///
/// EBackFaceMode mBackFaceMode = EBackFaceMode::IgnoreBackFaces
///
///
public BackFaceMode GetBackFaceMode() => Jolt.PInvoke.CollideShapeSettings_GetBackFaceMode(this);
///
///
/// How backfacing triangles should be treated
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:103
///
/// EBackFaceMode mBackFaceMode = EBackFaceMode::IgnoreBackFaces
///
///
public void SetBackFaceMode(BackFaceMode value) =>
Jolt.PInvoke.CollideShapeSettings_SetBackFaceMode(this, value);
///
///
/// Max squared distance to consider a vertex to be the same as another vertex, used by the internal edge
/// removal algorithm to determine if two edges are shared. (unit: meter^2)
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:106
///
/// float mInternalEdgeRemovalVertexToleranceSq = cDefaultInternalEdgeRemovalVertexToleranceSq
///
///
public float GetInternalEdgeRemovalVertexToleranceSq() =>
Jolt.PInvoke.CollideShapeSettings_GetInternalEdgeRemovalVertexToleranceSq(this);
///
///
/// Max squared distance to consider a vertex to be the same as another vertex, used by the internal edge
/// removal algorithm to determine if two edges are shared. (unit: meter^2)
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:106
///
/// float mInternalEdgeRemovalVertexToleranceSq = cDefaultInternalEdgeRemovalVertexToleranceSq
///
///
public void SetInternalEdgeRemovalVertexToleranceSq(float value) =>
Jolt.PInvoke.CollideShapeSettings_SetInternalEdgeRemovalVertexToleranceSq(this, value);
public static implicit operator CollideSettingsBase(CollideShapeSettings value) =>
Unsafe.BitCast(value);
public void Dispose() => Jolt.PInvoke.CollideShapeSettings_Destroy(this);
///
public ActiveEdgeMode GetActiveEdgeMode() => ((CollideSettingsBase)this).GetActiveEdgeMode();
///
public void SetActiveEdgeMode(ActiveEdgeMode value) => ((CollideSettingsBase)this).SetActiveEdgeMode(value);
///
public CollectFacesMode GetCollectFacesMode() => ((CollideSettingsBase)this).GetCollectFacesMode();
///
public void SetCollectFacesMode(CollectFacesMode value) =>
((CollideSettingsBase)this).SetCollectFacesMode(value);
///
public float GetCollisionTolerance() => ((CollideSettingsBase)this).GetCollisionTolerance();
///
public void SetCollisionTolerance(float value) => ((CollideSettingsBase)this).SetCollisionTolerance(value);
///
public float GetPenetrationTolerance() => ((CollideSettingsBase)this).GetPenetrationTolerance();
///
public void SetPenetrationTolerance(float value) => ((CollideSettingsBase)this).SetPenetrationTolerance(value);
///
public float3 GetActiveEdgeMovementDirection() => ((CollideSettingsBase)this).GetActiveEdgeMovementDirection();
///
public void SetActiveEdgeMovementDirection(float3 value) =>
((CollideSettingsBase)this).SetActiveEdgeMovementDirection(value);
}
}