brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/CollidePointResult.gen.cs
2026-10-15 14:12:02 +13:00

91 lines
4 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/CollidePointResult.h#L13">Jolt/Physics/Collision/CollidePointResult.h:13</see>
/// <br/>
/// <c>class CollidePointResult</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Structure that holds the result of colliding a point against a shape
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct CollidePointResult : IDisposable
{
public static CollidePointResult Create() => Jolt.PInvoke.CollidePointResult_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollidePointResult.h#L19">Jolt/Physics/Collision/CollidePointResult.h:19</see>
/// <br/>
/// <c>inline float GetEarlyOutFraction() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Function required by the CollisionCollector. A smaller fraction is considered to be a 'better hit'. For
/// point queries there is no sensible return value.
/// </para>
/// </remarks>
public float GetEarlyOutFraction() => Jolt.PInvoke.CollidePointResult_GetEarlyOutFraction(this);
/// <summary>
/// <para>
/// Body that was hit
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollidePointResult.h#L21">Jolt/Physics/Collision/CollidePointResult.h:21</see>
/// <br/>
/// <c>BodyID mBodyID</c>
/// </para>
/// </summary>
public uint GetBodyID() => Jolt.PInvoke.CollidePointResult_GetBodyID(this);
/// <summary>
/// <para>
/// Body that was hit
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollidePointResult.h#L21">Jolt/Physics/Collision/CollidePointResult.h:21</see>
/// <br/>
/// <c>BodyID mBodyID</c>
/// </para>
/// </summary>
public void SetBodyID(uint value) => Jolt.PInvoke.CollidePointResult_SetBodyID(this, value);
/// <summary>
/// <para>
/// Sub shape ID of shape that we collided against
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollidePointResult.h#L22">Jolt/Physics/Collision/CollidePointResult.h:22</see>
/// <br/>
/// <c>SubShapeID mSubShapeID2</c>
/// </para>
/// </summary>
public uint GetSubShapeID2() => Jolt.PInvoke.CollidePointResult_GetSubShapeID2(this);
/// <summary>
/// <para>
/// Sub shape ID of shape that we collided against
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollidePointResult.h#L22">Jolt/Physics/Collision/CollidePointResult.h:22</see>
/// <br/>
/// <c>SubShapeID mSubShapeID2</c>
/// </para>
/// </summary>
public void SetSubShapeID2(uint value) => Jolt.PInvoke.CollidePointResult_SetSubShapeID2(this, value);
public void Dispose() => Jolt.PInvoke.CollidePointResult_Destroy(this);
}
}