brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/CollideShapeResult.gen.cs
2026-10-15 14:12:02 +13:00

246 lines
12 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L18">Jolt/Physics/Collision/CollideShape.h:18</see>
/// <br/>
/// <c>class CollideShapeResult</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Class that contains all information of two colliding shapes
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct CollideShapeResult : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L24">Jolt/Physics/Collision/CollideShape.h:24</see>
/// <br/>
/// <c>CollideShapeResult() = default</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Default constructor
/// </para>
/// </remarks>
public static CollideShapeResult Create() => Jolt.PInvoke.CollideShapeResult_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L27">Jolt/Physics/Collision/CollideShape.h:27</see>
/// <br/>
/// <c>CollideShapeResult(Vec3Arg inContactPointOn1, Vec3Arg inContactPointOn2, Vec3Arg inPenetrationAxis, float inPenetrationDepth, const SubShapeID &amp;inSubShapeID1, const SubShapeID &amp;inSubShapeID2, const BodyID &amp;inBodyID2)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
public static CollideShapeResult Create(float3 contactPointOn1, float3 contactPointOn2, float3 penetrationAxis, float penetrationDepth, uint subShapeID1, uint subShapeID2, uint bodyID2) => Jolt.PInvoke.CollideShapeResult_Create_2(contactPointOn1, contactPointOn2, penetrationAxis, penetrationDepth, subShapeID1, subShapeID2, bodyID2);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L39">Jolt/Physics/Collision/CollideShape.h:39</see>
/// <br/>
/// <c>inline float GetEarlyOutFraction() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Function required by the CollisionCollector. A smaller fraction is considered to be a 'better hit'. We
/// use -penetration depth to get the hit with the biggest penetration depth
/// </para>
/// </remarks>
public float GetEarlyOutFraction() => Jolt.PInvoke.CollideShapeResult_GetEarlyOutFraction(this);
/// <summary>
/// <para>
/// Contact point on the surface of shape 1 (in world space or relative to base offset)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L59">Jolt/Physics/Collision/CollideShape.h:59</see>
/// <br/>
/// <c>Vec3 mContactPointOn1</c>
/// </para>
/// </summary>
public float3 GetContactPointOn1() => Jolt.PInvoke.CollideShapeResult_GetContactPointOn1(this);
/// <summary>
/// <para>
/// Contact point on the surface of shape 1 (in world space or relative to base offset)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L59">Jolt/Physics/Collision/CollideShape.h:59</see>
/// <br/>
/// <c>Vec3 mContactPointOn1</c>
/// </para>
/// </summary>
public void SetContactPointOn1(float3 value) => Jolt.PInvoke.CollideShapeResult_SetContactPointOn1(this, value);
/// <summary>
/// <para>
/// Contact point on the surface of shape 2 (in world space or relative to base offset). If the penetration
/// depth is 0, this will be the same as mContactPointOn1.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L60">Jolt/Physics/Collision/CollideShape.h:60</see>
/// <br/>
/// <c>Vec3 mContactPointOn2</c>
/// </para>
/// </summary>
public float3 GetContactPointOn2() => Jolt.PInvoke.CollideShapeResult_GetContactPointOn2(this);
/// <summary>
/// <para>
/// Contact point on the surface of shape 2 (in world space or relative to base offset). If the penetration
/// depth is 0, this will be the same as mContactPointOn1.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L60">Jolt/Physics/Collision/CollideShape.h:60</see>
/// <br/>
/// <c>Vec3 mContactPointOn2</c>
/// </para>
/// </summary>
public void SetContactPointOn2(float3 value) => Jolt.PInvoke.CollideShapeResult_SetContactPointOn2(this, value);
/// <summary>
/// <para>
/// Direction to move shape 2 out of collision along the shortest path (magnitude is meaningless, in world
/// space). You can use -mPenetrationAxis.Normalized() as contact normal.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L61">Jolt/Physics/Collision/CollideShape.h:61</see>
/// <br/>
/// <c>Vec3 mPenetrationAxis</c>
/// </para>
/// </summary>
public float3 GetPenetrationAxis() => Jolt.PInvoke.CollideShapeResult_GetPenetrationAxis(this);
/// <summary>
/// <para>
/// Direction to move shape 2 out of collision along the shortest path (magnitude is meaningless, in world
/// space). You can use -mPenetrationAxis.Normalized() as contact normal.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L61">Jolt/Physics/Collision/CollideShape.h:61</see>
/// <br/>
/// <c>Vec3 mPenetrationAxis</c>
/// </para>
/// </summary>
public void SetPenetrationAxis(float3 value) => Jolt.PInvoke.CollideShapeResult_SetPenetrationAxis(this, value);
/// <summary>
/// <para>
/// Penetration depth (move shape 2 by this distance to resolve the collision). If
/// CollideShapeSettings::mMaxSeparationDistance &gt; 0 this number can be negative to indicate that the
/// objects are separated by -mPenetrationDepth. The contact points are the closest points in that case.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L62">Jolt/Physics/Collision/CollideShape.h:62</see>
/// <br/>
/// <c>float mPenetrationDepth</c>
/// </para>
/// </summary>
public float GetPenetrationDepth() => Jolt.PInvoke.CollideShapeResult_GetPenetrationDepth(this);
/// <summary>
/// <para>
/// Penetration depth (move shape 2 by this distance to resolve the collision). If
/// CollideShapeSettings::mMaxSeparationDistance &gt; 0 this number can be negative to indicate that the
/// objects are separated by -mPenetrationDepth. The contact points are the closest points in that case.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L62">Jolt/Physics/Collision/CollideShape.h:62</see>
/// <br/>
/// <c>float mPenetrationDepth</c>
/// </para>
/// </summary>
public void SetPenetrationDepth(float value) => Jolt.PInvoke.CollideShapeResult_SetPenetrationDepth(this, value);
/// <summary>
/// <para>
/// Sub shape ID that identifies the face on shape 1
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L63">Jolt/Physics/Collision/CollideShape.h:63</see>
/// <br/>
/// <c>SubShapeID mSubShapeID1</c>
/// </para>
/// </summary>
public uint GetSubShapeID1() => Jolt.PInvoke.CollideShapeResult_GetSubShapeID1(this);
/// <summary>
/// <para>
/// Sub shape ID that identifies the face on shape 1
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L63">Jolt/Physics/Collision/CollideShape.h:63</see>
/// <br/>
/// <c>SubShapeID mSubShapeID1</c>
/// </para>
/// </summary>
public void SetSubShapeID1(uint value) => Jolt.PInvoke.CollideShapeResult_SetSubShapeID1(this, value);
/// <summary>
/// <para>
/// Sub shape ID that identifies the face on shape 2
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L64">Jolt/Physics/Collision/CollideShape.h:64</see>
/// <br/>
/// <c>SubShapeID mSubShapeID2</c>
/// </para>
/// </summary>
public uint GetSubShapeID2() => Jolt.PInvoke.CollideShapeResult_GetSubShapeID2(this);
/// <summary>
/// <para>
/// Sub shape ID that identifies the face on shape 2
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L64">Jolt/Physics/Collision/CollideShape.h:64</see>
/// <br/>
/// <c>SubShapeID mSubShapeID2</c>
/// </para>
/// </summary>
public void SetSubShapeID2(uint value) => Jolt.PInvoke.CollideShapeResult_SetSubShapeID2(this, value);
/// <summary>
/// <para>
/// BodyID to which shape 2 belongs to
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L65">Jolt/Physics/Collision/CollideShape.h:65</see>
/// <br/>
/// <c>BodyID mBodyID2</c>
/// </para>
/// </summary>
public uint GetBodyID2() => Jolt.PInvoke.CollideShapeResult_GetBodyID2(this);
/// <summary>
/// <para>
/// BodyID to which shape 2 belongs to
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/CollideShape.h#L65">Jolt/Physics/Collision/CollideShape.h:65</see>
/// <br/>
/// <c>BodyID mBodyID2</c>
/// </para>
/// </summary>
public void SetBodyID2(uint value) => Jolt.PInvoke.CollideShapeResult_SetBodyID2(this, value);
public void Dispose() => Jolt.PInvoke.CollideShapeResult_Destroy(this);
}
}