brutal/Brutal.Jolt/Generated/Classes/RayCastSettings.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

127 lines
5.7 KiB
C#

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