//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:71
///
/// class CollideSettingsBase
///
///
///
///
/// Settings to be passed with a collision query
///
///
[InteropHandle]
public readonly partial struct CollideSettingsBase : IDisposable
{
public static CollideSettingsBase Create() => Jolt.PInvoke.CollideSettingsBase_Create();
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:77
///
/// EActiveEdgeMode mActiveEdgeMode = EActiveEdgeMode::CollideOnlyWithActive
///
///
///
///
/// How active edges (edges that a moving object should bump into) are handled
///
///
public EActiveEdgeMode GetActiveEdgeMode() => Jolt.PInvoke.CollideSettingsBase_GetActiveEdgeMode(this);
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:77
///
/// EActiveEdgeMode mActiveEdgeMode = EActiveEdgeMode::CollideOnlyWithActive
///
///
///
///
/// How active edges (edges that a moving object should bump into) are handled
///
///
public void SetActiveEdgeMode(EActiveEdgeMode value) => Jolt.PInvoke.CollideSettingsBase_SetActiveEdgeMode(this, value);
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:80
///
/// ECollectFacesMode mCollectFacesMode = ECollectFacesMode::NoFaces
///
///
///
///
/// If colliding faces should be collected or only the collision point
///
///
public ECollectFacesMode GetCollectFacesMode() => Jolt.PInvoke.CollideSettingsBase_GetCollectFacesMode(this);
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:80
///
/// ECollectFacesMode mCollectFacesMode = ECollectFacesMode::NoFaces
///
///
///
///
/// If colliding faces should be collected or only the collision point
///
///
public void SetCollectFacesMode(ECollectFacesMode value) => Jolt.PInvoke.CollideSettingsBase_SetCollectFacesMode(this, value);
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:83
///
/// float mCollisionTolerance = cDefaultCollisionTolerance
///
///
///
///
/// If objects are closer than this distance, they are considered to be colliding (used for GJK) (unit:
/// meter)
///
///
public float GetCollisionTolerance() => Jolt.PInvoke.CollideSettingsBase_GetCollisionTolerance(this);
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:83
///
/// float mCollisionTolerance = cDefaultCollisionTolerance
///
///
///
///
/// If objects are closer than this distance, they are considered to be colliding (used for GJK) (unit:
/// meter)
///
///
public void SetCollisionTolerance(float value) => Jolt.PInvoke.CollideSettingsBase_SetCollisionTolerance(this, value);
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:86
///
/// float mPenetrationTolerance = cDefaultPenetrationTolerance
///
///
///
///
/// A factor that determines the accuracy of the penetration depth calculation. If the change of the squared
/// distance is less than tolerance * current_penetration_depth^2 the algorithm will terminate. (unit:
/// dimensionless)
///
///
public float GetPenetrationTolerance() => Jolt.PInvoke.CollideSettingsBase_GetPenetrationTolerance(this);
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:86
///
/// float mPenetrationTolerance = cDefaultPenetrationTolerance
///
///
///
///
/// A factor that determines the accuracy of the penetration depth calculation. If the change of the squared
/// distance is less than tolerance * current_penetration_depth^2 the algorithm will terminate. (unit:
/// dimensionless)
///
///
public void SetPenetrationTolerance(float value) => Jolt.PInvoke.CollideSettingsBase_SetPenetrationTolerance(this, value);
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:89
///
/// Vec3 mActiveEdgeMovementDirection = Vec3::sZero()
///
///
///
///
/// When mActiveEdgeMode is CollideOnlyWithActive a movement direction can be provided. When hitting an
/// inactive edge, the system will select the triangle normal as penetration depth only if it impedes the
/// movement less than with the calculated penetration depth.
///
///
public float3 GetActiveEdgeMovementDirection() => Jolt.PInvoke.CollideSettingsBase_GetActiveEdgeMovementDirection(this);
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:89
///
/// Vec3 mActiveEdgeMovementDirection = Vec3::sZero()
///
///
///
///
/// When mActiveEdgeMode is CollideOnlyWithActive a movement direction can be provided. When hitting an
/// inactive edge, the system will select the triangle normal as penetration depth only if it impedes the
/// movement less than with the calculated penetration depth.
///
///
public void SetActiveEdgeMovementDirection(float3 value) => Jolt.PInvoke.CollideSettingsBase_SetActiveEdgeMovementDirection(this, value);
public void Dispose() => Jolt.PInvoke.CollideSettingsBase_Destroy(this);
}
}