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