mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 12:38:24 +01:00
45 lines
1.4 KiB
C#
45 lines
1.4 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>
|
|
/// 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;
|
|
}
|
|
}
|