mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
178 lines
10 KiB
C#
178 lines
10 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
|
|
{
|
|
public static partial class Jolt
|
|
{
|
|
public static unsafe partial class PInvoke
|
|
{
|
|
[LibraryImport("jolt", EntryPoint = "ContactManifold_Create")]
|
|
public static partial ContactManifold ContactManifold_Create();
|
|
[LibraryImport("jolt", EntryPoint = "ContactManifold_Destroy")]
|
|
public static partial void ContactManifold_Destroy(ContactManifold self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "ContactManifold_GetWorldSpaceContactPointOn1")]
|
|
public static partial float3 ContactManifold_GetWorldSpaceContactPointOn1(ContactManifold self, uint 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>
|
|
[LibraryImport("jolt", EntryPoint = "ContactManifold_GetWorldSpaceContactPointOn2")]
|
|
public static partial float3 ContactManifold_GetWorldSpaceContactPointOn2(ContactManifold self, uint 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>
|
|
[LibraryImport("jolt", EntryPoint = "ContactManifold_GetBaseOffset")]
|
|
public static partial float3 ContactManifold_GetBaseOffset(ContactManifold self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "ContactManifold_SetBaseOffset")]
|
|
public static partial void ContactManifold_SetBaseOffset(ContactManifold self, float3 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>
|
|
[LibraryImport("jolt", EntryPoint = "ContactManifold_GetWorldSpaceNormal")]
|
|
public static partial float3 ContactManifold_GetWorldSpaceNormal(ContactManifold self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "ContactManifold_SetWorldSpaceNormal")]
|
|
public static partial void ContactManifold_SetWorldSpaceNormal(ContactManifold self, float3 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>
|
|
[LibraryImport("jolt", EntryPoint = "ContactManifold_GetPenetrationDepth")]
|
|
public static partial float ContactManifold_GetPenetrationDepth(ContactManifold self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "ContactManifold_SetPenetrationDepth")]
|
|
public static partial void ContactManifold_SetPenetrationDepth(ContactManifold self, float 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>
|
|
[LibraryImport("jolt", EntryPoint = "ContactManifold_GetSubShapeID1")]
|
|
public static partial uint ContactManifold_GetSubShapeID1(ContactManifold self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "ContactManifold_SetSubShapeID1")]
|
|
public static partial void ContactManifold_SetSubShapeID1(ContactManifold self, uint 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>
|
|
[LibraryImport("jolt", EntryPoint = "ContactManifold_GetSubShapeID2")]
|
|
public static partial uint ContactManifold_GetSubShapeID2(ContactManifold self);
|
|
/// <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>
|
|
[LibraryImport("jolt", EntryPoint = "ContactManifold_SetSubShapeID2")]
|
|
public static partial void ContactManifold_SetSubShapeID2(ContactManifold self, uint value);
|
|
}
|
|
}
|
|
}
|