mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
130 lines
6 KiB
C#
130 lines
6 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using Brutal.Interop;
|
|
using Brutal.Numerics;
|
|
namespace Brutal.JoltApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/RayCast.h#L69">Jolt/Physics/Collision/RayCast.h:69</see>
|
|
/// <br/>
|
|
/// <c>class RayCastSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Settings to be passed with a ray cast
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct RayCastSettings : IDisposable
|
|
{
|
|
public static RayCastSettings Create() => Jolt.PInvoke.RayCastSettings_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/RayCast.h#L75">Jolt/Physics/Collision/RayCast.h:75</see>
|
|
/// <br/>
|
|
/// <c>void SetBackFaceMode(EBackFaceMode inMode)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Set the backfacing mode for all shapes
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetBackFaceMode(EBackFaceMode mode) => Jolt.PInvoke.RayCastSettings_SetBackFaceMode(this, mode);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/RayCast.h#L78">Jolt/Physics/Collision/RayCast.h:78</see>
|
|
/// <br/>
|
|
/// <c>EBackFaceMode mBackFaceModeTriangles = EBackFaceMode::IgnoreBackFaces</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// How backfacing triangles should be treated (should we report back facing hits for triangle based shapes,
|
|
/// e.g. MeshShape/HeightFieldShape?)
|
|
/// </para>
|
|
/// </remarks>
|
|
public EBackFaceMode GetBackFaceModeTriangles() => Jolt.PInvoke.RayCastSettings_GetBackFaceModeTriangles(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/RayCast.h#L78">Jolt/Physics/Collision/RayCast.h:78</see>
|
|
/// <br/>
|
|
/// <c>EBackFaceMode mBackFaceModeTriangles = EBackFaceMode::IgnoreBackFaces</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// How backfacing triangles should be treated (should we report back facing hits for triangle based shapes,
|
|
/// e.g. MeshShape/HeightFieldShape?)
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetBackFaceModeTriangles(EBackFaceMode value) => Jolt.PInvoke.RayCastSettings_SetBackFaceModeTriangles(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/RayCast.h#L81">Jolt/Physics/Collision/RayCast.h:81</see>
|
|
/// <br/>
|
|
/// <c>EBackFaceMode mBackFaceModeConvex = EBackFaceMode::IgnoreBackFaces</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// How backfacing convex objects should be treated (should we report back facing hits for convex shapes?)
|
|
/// </para>
|
|
/// </remarks>
|
|
public EBackFaceMode GetBackFaceModeConvex() => Jolt.PInvoke.RayCastSettings_GetBackFaceModeConvex(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/RayCast.h#L81">Jolt/Physics/Collision/RayCast.h:81</see>
|
|
/// <br/>
|
|
/// <c>EBackFaceMode mBackFaceModeConvex = EBackFaceMode::IgnoreBackFaces</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// How backfacing convex objects should be treated (should we report back facing hits for convex shapes?)
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetBackFaceModeConvex(EBackFaceMode value) => Jolt.PInvoke.RayCastSettings_SetBackFaceModeConvex(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/RayCast.h#L84">Jolt/Physics/Collision/RayCast.h:84</see>
|
|
/// <br/>
|
|
/// <c>bool mTreatConvexAsSolid = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <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>
|
|
/// </remarks>
|
|
public bool GetTreatConvexAsSolid() => Jolt.PInvoke.RayCastSettings_GetTreatConvexAsSolid(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/RayCast.h#L84">Jolt/Physics/Collision/RayCast.h:84</see>
|
|
/// <br/>
|
|
/// <c>bool mTreatConvexAsSolid = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <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>
|
|
/// </remarks>
|
|
public void SetTreatConvexAsSolid(bool value) => Jolt.PInvoke.RayCastSettings_SetTreatConvexAsSolid(this, value);
|
|
public void Dispose() => Jolt.PInvoke.RayCastSettings_Destroy(this);
|
|
}
|
|
}
|