//
// 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/RayCast.h:69
///
/// class RayCastSettings
///
///
///
///
/// Settings to be passed with a ray cast
///
///
[InteropHandle]
public readonly partial struct RayCastSettings : IDisposable
{
public static RayCastSettings Create() => Jolt.PInvoke.RayCastSettings_Create();
///
///
/// C++:
/// Jolt/Physics/Collision/RayCast.h:75
///
/// void SetBackFaceMode(EBackFaceMode inMode)
///
///
///
///
/// Set the backfacing mode for all shapes
///
///
public void SetBackFaceMode(EBackFaceMode mode) => Jolt.PInvoke.RayCastSettings_SetBackFaceMode(this, mode);
///
///
/// C++:
/// Jolt/Physics/Collision/RayCast.h:78
///
/// EBackFaceMode mBackFaceModeTriangles = EBackFaceMode::IgnoreBackFaces
///
///
///
///
/// How backfacing triangles should be treated (should we report back facing hits for triangle based shapes,
/// e.g. MeshShape/HeightFieldShape?)
///
///
public EBackFaceMode GetBackFaceModeTriangles() => Jolt.PInvoke.RayCastSettings_GetBackFaceModeTriangles(this);
///
///
/// C++:
/// Jolt/Physics/Collision/RayCast.h:78
///
/// EBackFaceMode mBackFaceModeTriangles = EBackFaceMode::IgnoreBackFaces
///
///
///
///
/// How backfacing triangles should be treated (should we report back facing hits for triangle based shapes,
/// e.g. MeshShape/HeightFieldShape?)
///
///
public void SetBackFaceModeTriangles(EBackFaceMode value) => Jolt.PInvoke.RayCastSettings_SetBackFaceModeTriangles(this, value);
///
///
/// C++:
/// Jolt/Physics/Collision/RayCast.h:81
///
/// EBackFaceMode mBackFaceModeConvex = EBackFaceMode::IgnoreBackFaces
///
///
///
///
/// How backfacing convex objects should be treated (should we report back facing hits for convex shapes?)
///
///
public EBackFaceMode GetBackFaceModeConvex() => Jolt.PInvoke.RayCastSettings_GetBackFaceModeConvex(this);
///
///
/// C++:
/// Jolt/Physics/Collision/RayCast.h:81
///
/// EBackFaceMode mBackFaceModeConvex = EBackFaceMode::IgnoreBackFaces
///
///
///
///
/// How backfacing convex objects should be treated (should we report back facing hits for convex shapes?)
///
///
public void SetBackFaceModeConvex(EBackFaceMode value) => Jolt.PInvoke.RayCastSettings_SetBackFaceModeConvex(this, value);
///
///
/// C++:
/// Jolt/Physics/Collision/RayCast.h:84
///
/// bool mTreatConvexAsSolid = true
///
///
///
///
/// If convex shapes should be treated as solid. When true, a ray starting inside a convex shape will
/// generate a hit at fraction 0.
///
///
public bool GetTreatConvexAsSolid() => Jolt.PInvoke.RayCastSettings_GetTreatConvexAsSolid(this);
///
///
/// C++:
/// Jolt/Physics/Collision/RayCast.h:84
///
/// bool mTreatConvexAsSolid = true
///
///
///
///
/// If convex shapes should be treated as solid. When true, a ray starting inside a convex shape will
/// generate a hit at fraction 0.
///
///
public void SetTreatConvexAsSolid(bool value) => Jolt.PInvoke.RayCastSettings_SetTreatConvexAsSolid(this, value);
public void Dispose() => Jolt.PInvoke.RayCastSettings_Destroy(this);
}
}