mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
154 lines
7.8 KiB
C#
154 lines
7.8 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 collision query
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L93">Jolt/Physics/Collision/CollideShape.h:93</see>
|
|
/// <br/>
|
|
/// <c>class CollideShapeSettings : public CollideSettingsBase</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct CollideShapeSettings : IDisposable
|
|
{
|
|
public static CollideShapeSettings Create() => Jolt.PInvoke.CollideShapeSettings_Create();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// When > 0 contacts in the vicinity of the query shape can be found. All nearest contacts that are not
|
|
/// further away than this distance will be found. Note that in this case
|
|
/// CollideShapeResult::mPenetrationDepth can become negative to indicate that objects are not overlapping.
|
|
/// (unit: meter)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L100">Jolt/Physics/Collision/CollideShape.h:100</see>
|
|
/// <br/>
|
|
/// <c>float mMaxSeparationDistance = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMaxSeparationDistance() => Jolt.PInvoke.CollideShapeSettings_GetMaxSeparationDistance(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// When > 0 contacts in the vicinity of the query shape can be found. All nearest contacts that are not
|
|
/// further away than this distance will be found. Note that in this case
|
|
/// CollideShapeResult::mPenetrationDepth can become negative to indicate that objects are not overlapping.
|
|
/// (unit: meter)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L100">Jolt/Physics/Collision/CollideShape.h:100</see>
|
|
/// <br/>
|
|
/// <c>float mMaxSeparationDistance = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxSeparationDistance(float value) =>
|
|
Jolt.PInvoke.CollideShapeSettings_SetMaxSeparationDistance(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// How backfacing triangles should be treated
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L103">Jolt/Physics/Collision/CollideShape.h:103</see>
|
|
/// <br/>
|
|
/// <c>EBackFaceMode mBackFaceMode = EBackFaceMode::IgnoreBackFaces</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public BackFaceMode GetBackFaceMode() => Jolt.PInvoke.CollideShapeSettings_GetBackFaceMode(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// How backfacing triangles should be treated
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L103">Jolt/Physics/Collision/CollideShape.h:103</see>
|
|
/// <br/>
|
|
/// <c>EBackFaceMode mBackFaceMode = EBackFaceMode::IgnoreBackFaces</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetBackFaceMode(BackFaceMode value) =>
|
|
Jolt.PInvoke.CollideShapeSettings_SetBackFaceMode(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Max squared distance to consider a vertex to be the same as another vertex, used by the internal edge
|
|
/// removal algorithm to determine if two edges are shared. (unit: meter^2)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L106">Jolt/Physics/Collision/CollideShape.h:106</see>
|
|
/// <br/>
|
|
/// <c>float mInternalEdgeRemovalVertexToleranceSq = cDefaultInternalEdgeRemovalVertexToleranceSq</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetInternalEdgeRemovalVertexToleranceSq() =>
|
|
Jolt.PInvoke.CollideShapeSettings_GetInternalEdgeRemovalVertexToleranceSq(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Max squared distance to consider a vertex to be the same as another vertex, used by the internal edge
|
|
/// removal algorithm to determine if two edges are shared. (unit: meter^2)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideShape.h#L106">Jolt/Physics/Collision/CollideShape.h:106</see>
|
|
/// <br/>
|
|
/// <c>float mInternalEdgeRemovalVertexToleranceSq = cDefaultInternalEdgeRemovalVertexToleranceSq</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetInternalEdgeRemovalVertexToleranceSq(float value) =>
|
|
Jolt.PInvoke.CollideShapeSettings_SetInternalEdgeRemovalVertexToleranceSq(this, value);
|
|
|
|
public static implicit operator CollideSettingsBase(CollideShapeSettings value) =>
|
|
Unsafe.BitCast<CollideShapeSettings, CollideSettingsBase>(value);
|
|
|
|
public void Dispose() => Jolt.PInvoke.CollideShapeSettings_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);
|
|
}
|
|
}
|