mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
150
Brutal.Jolt/Generated/Structs/CharacterContactKey.gen.cs
Normal file
150
Brutal.Jolt/Generated/Structs/CharacterContactKey.gen.cs
Normal file
|
|
@ -0,0 +1,150 @@
|
|||
// <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>
|
||||
/// Uniquely identifies a contact between a character and another body or character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L85">Jolt/Physics/Character/CharacterVirtual.h:85</see>
|
||||
/// <br/>
|
||||
/// <c>class CharacterContactKey</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 12)]
|
||||
public partial struct CharacterContactKey
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// ID of body we're colliding with (if not invalid)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L123">Jolt/Physics/Character/CharacterVirtual.h:123</see>
|
||||
/// <br/>
|
||||
/// <c>BodyID mBodyB</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(0)]
|
||||
public uint BodyB;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Character we're colliding with (if not invalid)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L124">Jolt/Physics/Character/CharacterVirtual.h:124</see>
|
||||
/// <br/>
|
||||
/// <c>CharacterID mCharacterIDB</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(4)]
|
||||
public uint CharacterIDB;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sub shape ID of body or character we're colliding with
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L125">Jolt/Physics/Character/CharacterVirtual.h:125</see>
|
||||
/// <br/>
|
||||
/// <c>SubShapeID mSubShapeIDB</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(8)]
|
||||
public uint SubShapeIDB;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Constructor
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L89">Jolt/Physics/Character/CharacterVirtual.h:89</see>
|
||||
/// <br/>
|
||||
/// <c>CharacterContactKey() = default</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static CharacterContactKey Create()
|
||||
{
|
||||
Jolt.PInvoke.CharacterContactKey_Create(out var _outResult);
|
||||
return _outResult;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L91">Jolt/Physics/Character/CharacterVirtual.h:91</see>
|
||||
/// <br/>
|
||||
/// <c>CharacterContactKey(const BodyID &inBodyB, const SubShapeID &inSubShapeID)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static CharacterContactKey Create(uint bodyB, uint subShapeID)
|
||||
{
|
||||
Jolt.PInvoke.CharacterContactKey_Create_2(bodyB, subShapeID, out var _outResult);
|
||||
return _outResult;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Checks if two contacts refer to the same body (or virtual character)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L96">Jolt/Physics/Character/CharacterVirtual.h:96</see>
|
||||
/// <br/>
|
||||
/// <c>inline bool IsSameBody(const CharacterContactKey &inOther) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public readonly bool IsSameBody(in CharacterContactKey other) =>
|
||||
Jolt.PInvoke.CharacterContactKey_IsSameBody(ref Unsafe.AsRef(in this), in other);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Hash of this structure
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L113">Jolt/Physics/Character/CharacterVirtual.h:113</see>
|
||||
/// <br/>
|
||||
/// <c>inline uint64 GetHash() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public readonly ulong GetHash() => Jolt.PInvoke.CharacterContactKey_GetHash(ref Unsafe.AsRef(in this));
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Saving / restoring state for replay
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L120">Jolt/Physics/Character/CharacterVirtual.h:120</see>
|
||||
/// <br/>
|
||||
/// <c>void SaveState(StateRecorder &inStream) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public readonly void SaveState(StateRecorder stream) =>
|
||||
Jolt.PInvoke.CharacterContactKey_SaveState(ref Unsafe.AsRef(in this), stream);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L121">Jolt/Physics/Character/CharacterVirtual.h:121</see>
|
||||
/// <br/>
|
||||
/// <c>void RestoreState(StateRecorder &inStream)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void RestoreState(StateRecorder stream) =>
|
||||
Jolt.PInvoke.CharacterContactKey_RestoreState(ref this, stream);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue