This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit b578433e37

View file

@ -0,0 +1,45 @@
// <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>
/// Specialization of cast result against a shape
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CastResult.h#L29">Jolt/Physics/Collision/CastResult.h:29</see>
/// <br/>
/// <c>class RayCastResult : public BroadPhaseCastResult</c>
/// </para>
/// </summary>
[StructLayout(LayoutKind.Explicit, Size = 12)]
public partial struct RayCastResult
{
[FieldOffset(0)]
public uint BodyID;
[FieldOffset(4)]
public float Fraction;
/// <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/CastResult.h#L34">Jolt/Physics/Collision/CastResult.h:34</see>
/// <br/>
/// <c>SubShapeID mSubShapeID2</c>
/// </para>
/// </summary>
[FieldOffset(8)]
public uint SubShapeID2;
}
}