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

173 lines
8.8 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/ContactListener.h#L19">Jolt/Physics/Collision/ContactListener.h:19</see>
/// <br/>
/// <c>class ContactManifold</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Manifold class, describes the contact surface between two bodies
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct ContactManifold : IDisposable
{
public static ContactManifold Create() => Jolt.PInvoke.ContactManifold_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L26">Jolt/Physics/Collision/ContactListener.h:26</see>
/// <br/>
/// <c>inline RVec3 GetWorldSpaceContactPointOn1(uint inIndex) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Access to the world space contact positions
/// </para>
/// </remarks>
public float3 GetWorldSpaceContactPointOn1(uint index) => Jolt.PInvoke.ContactManifold_GetWorldSpaceContactPointOn1(this, index);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L27">Jolt/Physics/Collision/ContactListener.h:27</see>
/// <br/>
/// <c>inline RVec3 GetWorldSpaceContactPointOn2(uint inIndex) const</c>
/// </para>
/// </summary>
public float3 GetWorldSpaceContactPointOn2(uint index) => Jolt.PInvoke.ContactManifold_GetWorldSpaceContactPointOn2(this, index);
/// <summary>
/// <para>
/// Offset to which all the contact points are relative
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L29">Jolt/Physics/Collision/ContactListener.h:29</see>
/// <br/>
/// <c>RVec3 mBaseOffset</c>
/// </para>
/// </summary>
public float3 GetBaseOffset() => Jolt.PInvoke.ContactManifold_GetBaseOffset(this);
/// <summary>
/// <para>
/// Offset to which all the contact points are relative
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L29">Jolt/Physics/Collision/ContactListener.h:29</see>
/// <br/>
/// <c>RVec3 mBaseOffset</c>
/// </para>
/// </summary>
public void SetBaseOffset(float3 value) => Jolt.PInvoke.ContactManifold_SetBaseOffset(this, value);
/// <summary>
/// <para>
/// Normal for this manifold, direction along which to move body 2 out of collision along the shortest path
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L30">Jolt/Physics/Collision/ContactListener.h:30</see>
/// <br/>
/// <c>Vec3 mWorldSpaceNormal</c>
/// </para>
/// </summary>
public float3 GetWorldSpaceNormal() => Jolt.PInvoke.ContactManifold_GetWorldSpaceNormal(this);
/// <summary>
/// <para>
/// Normal for this manifold, direction along which to move body 2 out of collision along the shortest path
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L30">Jolt/Physics/Collision/ContactListener.h:30</see>
/// <br/>
/// <c>Vec3 mWorldSpaceNormal</c>
/// </para>
/// </summary>
public void SetWorldSpaceNormal(float3 value) => Jolt.PInvoke.ContactManifold_SetWorldSpaceNormal(this, value);
/// <summary>
/// <para>
/// Penetration depth (move shape 2 by this distance to resolve the collision). If this value is negative,
/// this is a speculative contact point and may not actually result in a velocity change as during solving
/// the bodies may not actually collide.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L31">Jolt/Physics/Collision/ContactListener.h:31</see>
/// <br/>
/// <c>float mPenetrationDepth</c>
/// </para>
/// </summary>
public float GetPenetrationDepth() => Jolt.PInvoke.ContactManifold_GetPenetrationDepth(this);
/// <summary>
/// <para>
/// Penetration depth (move shape 2 by this distance to resolve the collision). If this value is negative,
/// this is a speculative contact point and may not actually result in a velocity change as during solving
/// the bodies may not actually collide.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L31">Jolt/Physics/Collision/ContactListener.h:31</see>
/// <br/>
/// <c>float mPenetrationDepth</c>
/// </para>
/// </summary>
public void SetPenetrationDepth(float value) => Jolt.PInvoke.ContactManifold_SetPenetrationDepth(this, value);
/// <summary>
/// <para>
/// Sub shapes that formed this manifold (note that when multiple manifolds are combined because they're
/// coplanar, we lose some information here because we only keep track of one sub shape pair that we
/// encounter, see description at Body::SetUseManifoldReduction)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L32">Jolt/Physics/Collision/ContactListener.h:32</see>
/// <br/>
/// <c>SubShapeID mSubShapeID1</c>
/// </para>
/// </summary>
public uint GetSubShapeID1() => Jolt.PInvoke.ContactManifold_GetSubShapeID1(this);
/// <summary>
/// <para>
/// Sub shapes that formed this manifold (note that when multiple manifolds are combined because they're
/// coplanar, we lose some information here because we only keep track of one sub shape pair that we
/// encounter, see description at Body::SetUseManifoldReduction)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L32">Jolt/Physics/Collision/ContactListener.h:32</see>
/// <br/>
/// <c>SubShapeID mSubShapeID1</c>
/// </para>
/// </summary>
public void SetSubShapeID1(uint value) => Jolt.PInvoke.ContactManifold_SetSubShapeID1(this, value);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L33">Jolt/Physics/Collision/ContactListener.h:33</see>
/// <br/>
/// <c>SubShapeID mSubShapeID2</c>
/// </para>
/// </summary>
public uint GetSubShapeID2() => Jolt.PInvoke.ContactManifold_GetSubShapeID2(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L33">Jolt/Physics/Collision/ContactListener.h:33</see>
/// <br/>
/// <c>SubShapeID mSubShapeID2</c>
/// </para>
/// </summary>
public void SetSubShapeID2(uint value) => Jolt.PInvoke.ContactManifold_SetSubShapeID2(this, value);
public void Dispose() => Jolt.PInvoke.ContactManifold_Destroy(this);
}
}