mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 05:58:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
68
Brutal.Jolt/Generated/Structs/CollidePointResult.gen.cs
Normal file
68
Brutal.Jolt/Generated/Structs/CollidePointResult.gen.cs
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
// <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));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue