mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 21:48:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
223
Brutal.Jolt/Generated/Classes/ShapeCastSettings.gen.cs
Normal file
223
Brutal.Jolt/Generated/Classes/ShapeCastSettings.gen.cs
Normal file
|
|
@ -0,0 +1,223 @@
|
|||
// <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 shape cast
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/ShapeCast.h#L91">Jolt/Physics/Collision/ShapeCast.h:91</see>
|
||||
/// <br/>
|
||||
/// <c>class ShapeCastSettings : public CollideSettingsBase</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct ShapeCastSettings : IDisposable
|
||||
{
|
||||
public static ShapeCastSettings Create() => Jolt.PInvoke.ShapeCastSettings_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/ShapeCast.h#L97">Jolt/Physics/Collision/ShapeCast.h:97</see>
|
||||
/// <br/>
|
||||
/// <c>void SetBackFaceMode(EBackFaceMode inMode)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetBackFaceMode(BackFaceMode mode) => Jolt.PInvoke.ShapeCastSettings_SetBackFaceMode(this, mode);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// When > 0 the query shape is inflated by an extra convex radius, this makes it bigger in every
|
||||
/// direction by this margin. (unit: meter)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/ShapeCast.h#L100">Jolt/Physics/Collision/ShapeCast.h:100</see>
|
||||
/// <br/>
|
||||
/// <c>float mExtraConvexRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetExtraConvexRadius() => Jolt.PInvoke.ShapeCastSettings_GetExtraConvexRadius(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// When > 0 the query shape is inflated by an extra convex radius, this makes it bigger in every
|
||||
/// direction by this margin. (unit: meter)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/ShapeCast.h#L100">Jolt/Physics/Collision/ShapeCast.h:100</see>
|
||||
/// <br/>
|
||||
/// <c>float mExtraConvexRadius = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetExtraConvexRadius(float value) =>
|
||||
Jolt.PInvoke.ShapeCastSettings_SetExtraConvexRadius(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <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>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/ShapeCast.h#L103">Jolt/Physics/Collision/ShapeCast.h:103</see>
|
||||
/// <br/>
|
||||
/// <c>EBackFaceMode mBackFaceModeTriangles = EBackFaceMode::IgnoreBackFaces</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public BackFaceMode GetBackFaceModeTriangles() => Jolt.PInvoke.ShapeCastSettings_GetBackFaceModeTriangles(this);
|
||||
|
||||
/// <summary>
|
||||
/// <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>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/ShapeCast.h#L103">Jolt/Physics/Collision/ShapeCast.h:103</see>
|
||||
/// <br/>
|
||||
/// <c>EBackFaceMode mBackFaceModeTriangles = EBackFaceMode::IgnoreBackFaces</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetBackFaceModeTriangles(BackFaceMode value) =>
|
||||
Jolt.PInvoke.ShapeCastSettings_SetBackFaceModeTriangles(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// How backfacing convex objects should be treated (should we report starting inside an object and moving
|
||||
/// out?)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/ShapeCast.h#L106">Jolt/Physics/Collision/ShapeCast.h:106</see>
|
||||
/// <br/>
|
||||
/// <c>EBackFaceMode mBackFaceModeConvex = EBackFaceMode::IgnoreBackFaces</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public BackFaceMode GetBackFaceModeConvex() => Jolt.PInvoke.ShapeCastSettings_GetBackFaceModeConvex(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// How backfacing convex objects should be treated (should we report starting inside an object and moving
|
||||
/// out?)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/ShapeCast.h#L106">Jolt/Physics/Collision/ShapeCast.h:106</see>
|
||||
/// <br/>
|
||||
/// <c>EBackFaceMode mBackFaceModeConvex = EBackFaceMode::IgnoreBackFaces</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetBackFaceModeConvex(BackFaceMode value) =>
|
||||
Jolt.PInvoke.ShapeCastSettings_SetBackFaceModeConvex(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <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>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/ShapeCast.h#L109">Jolt/Physics/Collision/ShapeCast.h:109</see>
|
||||
/// <br/>
|
||||
/// <c>bool mUseShrunkenShapeAndConvexRadius = false</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public bool GetUseShrunkenShapeAndConvexRadius() =>
|
||||
Jolt.PInvoke.ShapeCastSettings_GetUseShrunkenShapeAndConvexRadius(this);
|
||||
|
||||
/// <summary>
|
||||
/// <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>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/ShapeCast.h#L109">Jolt/Physics/Collision/ShapeCast.h:109</see>
|
||||
/// <br/>
|
||||
/// <c>bool mUseShrunkenShapeAndConvexRadius = false</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetUseShrunkenShapeAndConvexRadius(bool value) =>
|
||||
Jolt.PInvoke.ShapeCastSettings_SetUseShrunkenShapeAndConvexRadius(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <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>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/ShapeCast.h#L112">Jolt/Physics/Collision/ShapeCast.h:112</see>
|
||||
/// <br/>
|
||||
/// <c>bool mReturnDeepestPoint = false</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public bool GetReturnDeepestPoint() => Jolt.PInvoke.ShapeCastSettings_GetReturnDeepestPoint(this);
|
||||
|
||||
/// <summary>
|
||||
/// <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>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/ShapeCast.h#L112">Jolt/Physics/Collision/ShapeCast.h:112</see>
|
||||
/// <br/>
|
||||
/// <c>bool mReturnDeepestPoint = false</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetReturnDeepestPoint(bool value) =>
|
||||
Jolt.PInvoke.ShapeCastSettings_SetReturnDeepestPoint(this, value);
|
||||
|
||||
public static implicit operator CollideSettingsBase(ShapeCastSettings value) =>
|
||||
Unsafe.BitCast<ShapeCastSettings, CollideSettingsBase>(value);
|
||||
|
||||
public void Dispose() => Jolt.PInvoke.ShapeCastSettings_Destroy(this);
|
||||
|
||||
/// <inheritdoc cref="CollideSettingsBase.GetActiveEdgeMode()"/>
|
||||
public ActiveEdgeMode GetActiveEdgeMode() => ((CollideSettingsBase)this).GetActiveEdgeMode();
|
||||
|
||||
/// <inheritdoc cref="CollideSettingsBase.SetActiveEdgeMode(ActiveEdgeMode)"/>
|
||||
public void SetActiveEdgeMode(ActiveEdgeMode value) => ((CollideSettingsBase)this).SetActiveEdgeMode(value);
|
||||
|
||||
/// <inheritdoc cref="CollideSettingsBase.GetCollectFacesMode()"/>
|
||||
public CollectFacesMode GetCollectFacesMode() => ((CollideSettingsBase)this).GetCollectFacesMode();
|
||||
|
||||
/// <inheritdoc cref="CollideSettingsBase.SetCollectFacesMode(CollectFacesMode)"/>
|
||||
public void SetCollectFacesMode(CollectFacesMode value) =>
|
||||
((CollideSettingsBase)this).SetCollectFacesMode(value);
|
||||
|
||||
/// <inheritdoc cref="CollideSettingsBase.GetCollisionTolerance()"/>
|
||||
public float GetCollisionTolerance() => ((CollideSettingsBase)this).GetCollisionTolerance();
|
||||
|
||||
/// <inheritdoc cref="CollideSettingsBase.SetCollisionTolerance(float)"/>
|
||||
public void SetCollisionTolerance(float value) => ((CollideSettingsBase)this).SetCollisionTolerance(value);
|
||||
|
||||
/// <inheritdoc cref="CollideSettingsBase.GetPenetrationTolerance()"/>
|
||||
public float GetPenetrationTolerance() => ((CollideSettingsBase)this).GetPenetrationTolerance();
|
||||
|
||||
/// <inheritdoc cref="CollideSettingsBase.SetPenetrationTolerance(float)"/>
|
||||
public void SetPenetrationTolerance(float value) => ((CollideSettingsBase)this).SetPenetrationTolerance(value);
|
||||
|
||||
/// <inheritdoc cref="CollideSettingsBase.GetActiveEdgeMovementDirection()"/>
|
||||
public float3 GetActiveEdgeMovementDirection() => ((CollideSettingsBase)this).GetActiveEdgeMovementDirection();
|
||||
|
||||
/// <inheritdoc cref="CollideSettingsBase.SetActiveEdgeMovementDirection(float3)"/>
|
||||
public void SetActiveEdgeMovementDirection(float3 value) =>
|
||||
((CollideSettingsBase)this).SetActiveEdgeMovementDirection(value);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue