mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
163 lines
8 KiB
C#
163 lines
8 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/ShapeCast.h#L91">Jolt/Physics/Collision/ShapeCast.h:91</see>
|
|
/// <br/>
|
|
/// <c>class ShapeCastSettings : public CollideSettingsBase</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Settings to be passed with a shape cast
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct ShapeCastSettings : IDisposable
|
|
{
|
|
public static ShapeCastSettings Create() => Jolt.PInvoke.ShapeCastSettings_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ShapeCast.h#L97">Jolt/Physics/Collision/ShapeCast.h:97</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.ShapeCastSettings_SetBackFaceMode(this, mode);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ShapeCast.h#L100">Jolt/Physics/Collision/ShapeCast.h:100</see>
|
|
/// <br/>
|
|
/// <c>EBackFaceMode mBackFaceModeTriangles = EBackFaceMode::IgnoreBackFaces</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// How backfacing triangles should be treated (should we report moving from back to front for triangle
|
|
/// based shapes, e.g. for MeshShape/HeightFieldShape?)
|
|
/// </para>
|
|
/// </remarks>
|
|
public EBackFaceMode GetBackFaceModeTriangles() => Jolt.PInvoke.ShapeCastSettings_GetBackFaceModeTriangles(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ShapeCast.h#L100">Jolt/Physics/Collision/ShapeCast.h:100</see>
|
|
/// <br/>
|
|
/// <c>EBackFaceMode mBackFaceModeTriangles = EBackFaceMode::IgnoreBackFaces</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// How backfacing triangles should be treated (should we report moving from back to front for triangle
|
|
/// based shapes, e.g. for MeshShape/HeightFieldShape?)
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetBackFaceModeTriangles(EBackFaceMode value) => Jolt.PInvoke.ShapeCastSettings_SetBackFaceModeTriangles(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ShapeCast.h#L103">Jolt/Physics/Collision/ShapeCast.h:103</see>
|
|
/// <br/>
|
|
/// <c>EBackFaceMode mBackFaceModeConvex = EBackFaceMode::IgnoreBackFaces</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// How backfacing convex objects should be treated (should we report starting inside an object and moving
|
|
/// out?)
|
|
/// </para>
|
|
/// </remarks>
|
|
public EBackFaceMode GetBackFaceModeConvex() => Jolt.PInvoke.ShapeCastSettings_GetBackFaceModeConvex(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ShapeCast.h#L103">Jolt/Physics/Collision/ShapeCast.h:103</see>
|
|
/// <br/>
|
|
/// <c>EBackFaceMode mBackFaceModeConvex = EBackFaceMode::IgnoreBackFaces</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// How backfacing convex objects should be treated (should we report starting inside an object and moving
|
|
/// out?)
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetBackFaceModeConvex(EBackFaceMode value) => Jolt.PInvoke.ShapeCastSettings_SetBackFaceModeConvex(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ShapeCast.h#L106">Jolt/Physics/Collision/ShapeCast.h:106</see>
|
|
/// <br/>
|
|
/// <c>bool mUseShrunkenShapeAndConvexRadius = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Indicates if we want to shrink the shape by the convex radius and then expand it again. This speeds up
|
|
/// collision detection and gives a more accurate normal at the cost of a more 'rounded' shape.
|
|
/// </para>
|
|
/// </remarks>
|
|
public bool GetUseShrunkenShapeAndConvexRadius() => Jolt.PInvoke.ShapeCastSettings_GetUseShrunkenShapeAndConvexRadius(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ShapeCast.h#L106">Jolt/Physics/Collision/ShapeCast.h:106</see>
|
|
/// <br/>
|
|
/// <c>bool mUseShrunkenShapeAndConvexRadius = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Indicates if we want to shrink the shape by the convex radius and then expand it again. This speeds up
|
|
/// collision detection and gives a more accurate normal at the cost of a more 'rounded' shape.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetUseShrunkenShapeAndConvexRadius(bool value) => Jolt.PInvoke.ShapeCastSettings_SetUseShrunkenShapeAndConvexRadius(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ShapeCast.h#L109">Jolt/Physics/Collision/ShapeCast.h:109</see>
|
|
/// <br/>
|
|
/// <c>bool mReturnDeepestPoint = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// When true, and the shape is intersecting at the beginning of the cast (fraction = 0) then this will
|
|
/// calculate the deepest penetration point (costing additional CPU time)
|
|
/// </para>
|
|
/// </remarks>
|
|
public bool GetReturnDeepestPoint() => Jolt.PInvoke.ShapeCastSettings_GetReturnDeepestPoint(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ShapeCast.h#L109">Jolt/Physics/Collision/ShapeCast.h:109</see>
|
|
/// <br/>
|
|
/// <c>bool mReturnDeepestPoint = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// When true, and the shape is intersecting at the beginning of the cast (fraction = 0) then this will
|
|
/// calculate the deepest penetration point (costing additional CPU time)
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetReturnDeepestPoint(bool value) => Jolt.PInvoke.ShapeCastSettings_SetReturnDeepestPoint(this, value);
|
|
public static implicit operator CollideSettingsBase(ShapeCastSettings value) => Jolt.PInvoke.ShapeCastSettings_AsCollideSettingsBase(value);
|
|
public void Dispose() => Jolt.PInvoke.ShapeCastSettings_Destroy(this);
|
|
}
|
|
}
|