brutal/Brutal.Jolt/Generated/Structs/CollidePointResult.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

68 lines
2.6 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>
/// Structure that holds the result of colliding a point against a shape
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollidePointResult.h#L13">Jolt/Physics/Collision/CollidePointResult.h:13</see>
/// <br/>
/// <c>class CollidePointResult</c>
/// </para>
/// </summary>
[StructLayout(LayoutKind.Explicit, Size = 8)]
public partial struct CollidePointResult
{
/// <summary>
/// <para>
/// Body that was hit
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollidePointResult.h#L21">Jolt/Physics/Collision/CollidePointResult.h:21</see>
/// <br/>
/// <c>BodyID mBodyID</c>
/// </para>
/// </summary>
[FieldOffset(0)]
public uint BodyID;
/// <summary>
/// <para>
/// Sub shape ID of shape that we collided against
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollidePointResult.h#L22">Jolt/Physics/Collision/CollidePointResult.h:22</see>
/// <br/>
/// <c>SubShapeID mSubShapeID2</c>
/// </para>
/// </summary>
[FieldOffset(4)]
public uint SubShapeID2;
/// <summary>
/// <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>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollidePointResult.h#L19">Jolt/Physics/Collision/CollidePointResult.h:19</see>
/// <br/>
/// <c>inline float GetEarlyOutFraction() const</c>
/// </para>
/// </summary>
public readonly float GetEarlyOutFraction() =>
Jolt.PInvoke.CollidePointResult_GetEarlyOutFraction(ref Unsafe.AsRef(in this));
}
}