//
// 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);
///
///
/// C++:
/// Jolt/Physics/Collision/ContactListener.h:26
///
/// inline RVec3 GetWorldSpaceContactPointOn1(uint inIndex) const
///
///
///
///
/// Access to the world space contact positions
///
///
[LibraryImport("jolt", EntryPoint = "ContactManifold_GetWorldSpaceContactPointOn1")]
public static partial float3 ContactManifold_GetWorldSpaceContactPointOn1(ContactManifold self, uint index);
///
///
/// C++:
/// Jolt/Physics/Collision/ContactListener.h:27
///
/// inline RVec3 GetWorldSpaceContactPointOn2(uint inIndex) const
///
///
[LibraryImport("jolt", EntryPoint = "ContactManifold_GetWorldSpaceContactPointOn2")]
public static partial float3 ContactManifold_GetWorldSpaceContactPointOn2(ContactManifold self, uint index);
///
///
/// Offset to which all the contact points are relative
///
///
/// C++:
/// Jolt/Physics/Collision/ContactListener.h:29
///
/// RVec3 mBaseOffset
///
///
[LibraryImport("jolt", EntryPoint = "ContactManifold_GetBaseOffset")]
public static partial float3 ContactManifold_GetBaseOffset(ContactManifold self);
///
///
/// Offset to which all the contact points are relative
///
///
/// C++:
/// Jolt/Physics/Collision/ContactListener.h:29
///
/// RVec3 mBaseOffset
///
///
[LibraryImport("jolt", EntryPoint = "ContactManifold_SetBaseOffset")]
public static partial void ContactManifold_SetBaseOffset(ContactManifold self, float3 value);
///
///
/// Normal for this manifold, direction along which to move body 2 out of collision along the shortest
/// path
///
///
/// C++:
/// Jolt/Physics/Collision/ContactListener.h:30
///
/// Vec3 mWorldSpaceNormal
///
///
[LibraryImport("jolt", EntryPoint = "ContactManifold_GetWorldSpaceNormal")]
public static partial float3 ContactManifold_GetWorldSpaceNormal(ContactManifold self);
///
///
/// Normal for this manifold, direction along which to move body 2 out of collision along the shortest
/// path
///
///
/// C++:
/// Jolt/Physics/Collision/ContactListener.h:30
///
/// Vec3 mWorldSpaceNormal
///
///
[LibraryImport("jolt", EntryPoint = "ContactManifold_SetWorldSpaceNormal")]
public static partial void ContactManifold_SetWorldSpaceNormal(ContactManifold self, float3 value);
///
///
/// 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.
///
///
/// C++:
/// Jolt/Physics/Collision/ContactListener.h:31
///
/// float mPenetrationDepth
///
///
[LibraryImport("jolt", EntryPoint = "ContactManifold_GetPenetrationDepth")]
public static partial float ContactManifold_GetPenetrationDepth(ContactManifold self);
///
///
/// 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.
///
///
/// C++:
/// Jolt/Physics/Collision/ContactListener.h:31
///
/// float mPenetrationDepth
///
///
[LibraryImport("jolt", EntryPoint = "ContactManifold_SetPenetrationDepth")]
public static partial void ContactManifold_SetPenetrationDepth(ContactManifold self, float value);
///
///
/// 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)
///
///
/// C++:
/// Jolt/Physics/Collision/ContactListener.h:32
///
/// SubShapeID mSubShapeID1
///
///
[LibraryImport("jolt", EntryPoint = "ContactManifold_GetSubShapeID1")]
public static partial uint ContactManifold_GetSubShapeID1(ContactManifold self);
///
///
/// 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)
///
///
/// C++:
/// Jolt/Physics/Collision/ContactListener.h:32
///
/// SubShapeID mSubShapeID1
///
///
[LibraryImport("jolt", EntryPoint = "ContactManifold_SetSubShapeID1")]
public static partial void ContactManifold_SetSubShapeID1(ContactManifold self, uint value);
///
///
/// C++:
/// Jolt/Physics/Collision/ContactListener.h:33
///
/// SubShapeID mSubShapeID2
///
///
[LibraryImport("jolt", EntryPoint = "ContactManifold_GetSubShapeID2")]
public static partial uint ContactManifold_GetSubShapeID2(ContactManifold self);
///
///
/// C++:
/// Jolt/Physics/Collision/ContactListener.h:33
///
/// SubShapeID mSubShapeID2
///
///
[LibraryImport("jolt", EntryPoint = "ContactManifold_SetSubShapeID2")]
public static partial void ContactManifold_SetSubShapeID2(ContactManifold self, uint value);
}
}
}