//
// 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/Constraints/TwoBodyConstraint.h:35
///
/// virtual EConstraintType GetType() const override
///
///
///
///
/// Get the type of a constraint
///
///
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_GetConstraintType")]
public static partial EConstraintType TwoBodyConstraint_GetConstraintType(TwoBodyConstraint self);
///
///
/// C++:
/// Jolt/Physics/Constraints/TwoBodyConstraint.h:38
///
/// virtual bool IsActive() const override
///
///
///
///
/// Solver interface
///
///
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_IsActive")]
public static partial Brutal.Bool8 TwoBodyConstraint_IsActive(TwoBodyConstraint self);
///
///
/// C++:
/// Jolt/Physics/Constraints/TwoBodyConstraint.h:40
///
/// virtual void DrawConstraintReferenceFrame(DebugRenderer *inRenderer) const override
///
///
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_DrawConstraintReferenceFrame")]
public static partial void TwoBodyConstraint_DrawConstraintReferenceFrame(TwoBodyConstraint self, DebugRenderer renderer);
///
///
/// C++:
/// Jolt/Physics/Constraints/TwoBodyConstraint.h:44
///
/// Body * GetBody1() const
///
///
///
///
/// Access to the connected bodies
///
///
/// The returned handle is borrowed from its owner; don't Dispose it.
///
///
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_GetBody1")]
public static partial Body TwoBodyConstraint_GetBody1(TwoBodyConstraint self);
///
///
/// C++:
/// Jolt/Physics/Constraints/TwoBodyConstraint.h:45
///
/// Body * GetBody2() const
///
///
///
///
/// The returned handle is borrowed from its owner; don't Dispose it.
///
///
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_GetBody2")]
public static partial Body TwoBodyConstraint_GetBody2(TwoBodyConstraint self);
///
///
/// C++:
/// Jolt/Physics/Constraints/TwoBodyConstraint.h:48
///
/// virtual Mat44 GetConstraintToBody1Matrix() const = 0
///
///
///
///
/// Calculates the transform that transforms from constraint space to body 1 space. The first column of
/// the matrix is the primary constraint axis (e.g. the hinge axis / slider direction), second column
/// the secondary etc.
///
///
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_GetConstraintToBody1Matrix")]
public static partial float4x4 TwoBodyConstraint_GetConstraintToBody1Matrix(TwoBodyConstraint self);
///
///
/// C++:
/// Jolt/Physics/Constraints/TwoBodyConstraint.h:51
///
/// virtual Mat44 GetConstraintToBody2Matrix() const = 0
///
///
///
///
/// Calculates the transform that transforms from constraint space to body 2 space. The first column of
/// the matrix is the primary constraint axis (e.g. the hinge axis / slider direction), second column
/// the secondary etc.
///
///
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_GetConstraintToBody2Matrix")]
public static partial float4x4 TwoBodyConstraint_GetConstraintToBody2Matrix(TwoBodyConstraint self);
///
///
/// C++:
/// Jolt/Physics/Constraints/TwoBodyConstraint.h:54
///
/// virtual void BuildIslands(uint32 inConstraintIndex, IslandBuilder &ioBuilder, BodyManager &inBodyManager) override
///
///
///
///
/// Link bodies that are connected by this constraint in the island builder
///
///
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_BuildIslands")]
public static partial void TwoBodyConstraint_BuildIslands(TwoBodyConstraint self, uint constraintIndex, IslandBuilder builder, BodyManager bodyManager);
///
///
/// C++:
/// Jolt/Physics/Constraints/TwoBodyConstraint.h:57
///
/// virtual uint BuildIslandSplits(LargeIslandSplitter &ioSplitter) const override
///
///
///
///
/// Link bodies that are connected by this constraint in the same split. Returns the split index.
///
///
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_BuildIslandSplits")]
public static partial uint TwoBodyConstraint_BuildIslandSplits(TwoBodyConstraint self, LargeIslandSplitter splitter);
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_AddRef")]
public static partial void TwoBodyConstraint_AddRef(TwoBodyConstraint self);
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_Release")]
public static partial void TwoBodyConstraint_Release(TwoBodyConstraint self);
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_GetRefCount")]
public static partial uint TwoBodyConstraint_GetRefCount(TwoBodyConstraint self);
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_AsConstraint")]
public static partial Constraint TwoBodyConstraint_AsConstraint(TwoBodyConstraint self);
}
}
}