//
// 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
{
///
///
/// A pair of bodies and their sub shape ID's. Can be used as a key in a map to find a contact point.
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:14
///
/// class SubShapeIDPair
///
///
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct SubShapeIDPair
{
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:54
///
/// BodyID mBody1ID
///
///
[FieldOffset(0)]
public uint Body1ID;
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:55
///
/// SubShapeID mSubShapeID1
///
///
[FieldOffset(4)]
public uint SubShapeID1;
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:56
///
/// BodyID mBody2ID
///
///
[FieldOffset(8)]
public uint Body2ID;
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:57
///
/// SubShapeID mSubShapeID2
///
///
[FieldOffset(12)]
public uint SubShapeID2;
///
///
/// Constructor
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:20
///
/// SubShapeIDPair() = default
///
///
public static SubShapeIDPair Create()
{
Jolt.PInvoke.SubShapeIDPair_Create(out var _outResult);
return _outResult;
}
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:21
///
/// SubShapeIDPair(const BodyID &inBody1ID, const SubShapeID &inSubShapeID1, const BodyID &inBody2ID, const SubShapeID &inSubShapeID2)
///
///
public static SubShapeIDPair Create(uint body1ID, uint subShapeID1, uint body2ID, uint subShapeID2)
{
Jolt.PInvoke.SubShapeIDPair_Create_2(body1ID, subShapeID1, body2ID, subShapeID2, out var _outResult);
return _outResult;
}
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:46
///
/// const BodyID & GetBody1ID() const
///
///
public readonly uint GetBody1ID() => Jolt.PInvoke.SubShapeIDPair_GetBody1ID(ref Unsafe.AsRef(in this));
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:47
///
/// const SubShapeID & GetSubShapeID1() const
///
///
public readonly uint GetSubShapeID1() => Jolt.PInvoke.SubShapeIDPair_GetSubShapeID1(ref Unsafe.AsRef(in this));
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:48
///
/// const BodyID & GetBody2ID() const
///
///
public readonly uint GetBody2ID() => Jolt.PInvoke.SubShapeIDPair_GetBody2ID(ref Unsafe.AsRef(in this));
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:49
///
/// const SubShapeID & GetSubShapeID2() const
///
///
public readonly uint GetSubShapeID2() => Jolt.PInvoke.SubShapeIDPair_GetSubShapeID2(ref Unsafe.AsRef(in this));
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:51
///
/// uint64 GetHash() const
///
///
public readonly ulong GetHash() => Jolt.PInvoke.SubShapeIDPair_GetHash(ref Unsafe.AsRef(in this));
}
}