//
// 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
{
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:24
///
/// CollideShapeResult() = default
///
///
///
///
/// Default constructor
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_Create")]
public static partial CollideShapeResult CollideShapeResult_Create();
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:27
///
/// CollideShapeResult(Vec3Arg inContactPointOn1, Vec3Arg inContactPointOn2, Vec3Arg inPenetrationAxis, float inPenetrationDepth, const SubShapeID &inSubShapeID1, const SubShapeID &inSubShapeID2, const BodyID &inBodyID2)
///
///
///
///
/// Constructor
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_Create_2")]
public static partial CollideShapeResult CollideShapeResult_Create_2(float3 contactPointOn1, float3 contactPointOn2, float3 penetrationAxis, float penetrationDepth, uint subShapeID1, uint subShapeID2, uint bodyID2);
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_Destroy")]
public static partial void CollideShapeResult_Destroy(CollideShapeResult self);
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:39
///
/// inline float GetEarlyOutFraction() const
///
///
///
///
/// 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
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_GetEarlyOutFraction")]
public static partial float CollideShapeResult_GetEarlyOutFraction(CollideShapeResult self);
///
///
/// Contact point on the surface of shape 1 (in world space or relative to base offset)
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:59
///
/// Vec3 mContactPointOn1
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_GetContactPointOn1")]
public static partial float3 CollideShapeResult_GetContactPointOn1(CollideShapeResult self);
///
///
/// Contact point on the surface of shape 1 (in world space or relative to base offset)
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:59
///
/// Vec3 mContactPointOn1
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_SetContactPointOn1")]
public static partial void CollideShapeResult_SetContactPointOn1(CollideShapeResult self, float3 value);
///
///
/// 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.
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:60
///
/// Vec3 mContactPointOn2
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_GetContactPointOn2")]
public static partial float3 CollideShapeResult_GetContactPointOn2(CollideShapeResult self);
///
///
/// 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.
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:60
///
/// Vec3 mContactPointOn2
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_SetContactPointOn2")]
public static partial void CollideShapeResult_SetContactPointOn2(CollideShapeResult self, float3 value);
///
///
/// 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.
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:61
///
/// Vec3 mPenetrationAxis
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_GetPenetrationAxis")]
public static partial float3 CollideShapeResult_GetPenetrationAxis(CollideShapeResult self);
///
///
/// 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.
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:61
///
/// Vec3 mPenetrationAxis
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_SetPenetrationAxis")]
public static partial void CollideShapeResult_SetPenetrationAxis(CollideShapeResult self, float3 value);
///
///
/// Penetration depth (move shape 2 by this distance to resolve the collision). If
/// CollideShapeSettings::mMaxSeparationDistance > 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.
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:62
///
/// float mPenetrationDepth
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_GetPenetrationDepth")]
public static partial float CollideShapeResult_GetPenetrationDepth(CollideShapeResult self);
///
///
/// Penetration depth (move shape 2 by this distance to resolve the collision). If
/// CollideShapeSettings::mMaxSeparationDistance > 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.
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:62
///
/// float mPenetrationDepth
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_SetPenetrationDepth")]
public static partial void CollideShapeResult_SetPenetrationDepth(CollideShapeResult self, float value);
///
///
/// Sub shape ID that identifies the face on shape 1
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:63
///
/// SubShapeID mSubShapeID1
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_GetSubShapeID1")]
public static partial uint CollideShapeResult_GetSubShapeID1(CollideShapeResult self);
///
///
/// Sub shape ID that identifies the face on shape 1
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:63
///
/// SubShapeID mSubShapeID1
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_SetSubShapeID1")]
public static partial void CollideShapeResult_SetSubShapeID1(CollideShapeResult self, uint value);
///
///
/// Sub shape ID that identifies the face on shape 2
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:64
///
/// SubShapeID mSubShapeID2
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_GetSubShapeID2")]
public static partial uint CollideShapeResult_GetSubShapeID2(CollideShapeResult self);
///
///
/// Sub shape ID that identifies the face on shape 2
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:64
///
/// SubShapeID mSubShapeID2
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_SetSubShapeID2")]
public static partial void CollideShapeResult_SetSubShapeID2(CollideShapeResult self, uint value);
///
///
/// BodyID to which shape 2 belongs to
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:65
///
/// BodyID mBodyID2
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_GetBodyID2")]
public static partial uint CollideShapeResult_GetBodyID2(CollideShapeResult self);
///
///
/// BodyID to which shape 2 belongs to
///
///
/// C++:
/// Jolt/Physics/Collision/CollideShape.h:65
///
/// BodyID mBodyID2
///
///
[LibraryImport("jolt", EntryPoint = "CollideShapeResult_SetBodyID2")]
public static partial void CollideShapeResult_SetBodyID2(CollideShapeResult self, uint value);
}
}
}