mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
160 lines
8.7 KiB
C#
160 lines
8.7 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
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/TwoBodyConstraint.h#L35">Jolt/Physics/Constraints/TwoBodyConstraint.h:35</see>
|
|
/// <br/>
|
|
/// <c>virtual EConstraintType GetType() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the type of a constraint
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_GetConstraintType")]
|
|
public static partial EConstraintType TwoBodyConstraint_GetConstraintType(TwoBodyConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/TwoBodyConstraint.h#L38">Jolt/Physics/Constraints/TwoBodyConstraint.h:38</see>
|
|
/// <br/>
|
|
/// <c>virtual bool IsActive() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Solver interface
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_IsActive")]
|
|
public static partial Brutal.Bool8 TwoBodyConstraint_IsActive(TwoBodyConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/TwoBodyConstraint.h#L40">Jolt/Physics/Constraints/TwoBodyConstraint.h:40</see>
|
|
/// <br/>
|
|
/// <c>virtual void DrawConstraintReferenceFrame(DebugRenderer *inRenderer) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_DrawConstraintReferenceFrame")]
|
|
public static partial void TwoBodyConstraint_DrawConstraintReferenceFrame(TwoBodyConstraint self, DebugRenderer renderer);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/TwoBodyConstraint.h#L44">Jolt/Physics/Constraints/TwoBodyConstraint.h:44</see>
|
|
/// <br/>
|
|
/// <c>Body * GetBody1() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Access to the connected bodies
|
|
/// </para>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_GetBody1")]
|
|
public static partial Body TwoBodyConstraint_GetBody1(TwoBodyConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/TwoBodyConstraint.h#L45">Jolt/Physics/Constraints/TwoBodyConstraint.h:45</see>
|
|
/// <br/>
|
|
/// <c>Body * GetBody2() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_GetBody2")]
|
|
public static partial Body TwoBodyConstraint_GetBody2(TwoBodyConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/TwoBodyConstraint.h#L48">Jolt/Physics/Constraints/TwoBodyConstraint.h:48</see>
|
|
/// <br/>
|
|
/// <c>virtual Mat44 GetConstraintToBody1Matrix() const = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_GetConstraintToBody1Matrix")]
|
|
public static partial float4x4 TwoBodyConstraint_GetConstraintToBody1Matrix(TwoBodyConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/TwoBodyConstraint.h#L51">Jolt/Physics/Constraints/TwoBodyConstraint.h:51</see>
|
|
/// <br/>
|
|
/// <c>virtual Mat44 GetConstraintToBody2Matrix() const = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_GetConstraintToBody2Matrix")]
|
|
public static partial float4x4 TwoBodyConstraint_GetConstraintToBody2Matrix(TwoBodyConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/TwoBodyConstraint.h#L54">Jolt/Physics/Constraints/TwoBodyConstraint.h:54</see>
|
|
/// <br/>
|
|
/// <c>virtual void BuildIslands(uint32 inConstraintIndex, IslandBuilder &ioBuilder, BodyManager &inBodyManager) override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Link bodies that are connected by this constraint in the island builder
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "TwoBodyConstraint_BuildIslands")]
|
|
public static partial void TwoBodyConstraint_BuildIslands(TwoBodyConstraint self, uint constraintIndex, IslandBuilder builder, BodyManager bodyManager);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/TwoBodyConstraint.h#L57">Jolt/Physics/Constraints/TwoBodyConstraint.h:57</see>
|
|
/// <br/>
|
|
/// <c>virtual uint BuildIslandSplits(LargeIslandSplitter &ioSplitter) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Link bodies that are connected by this constraint in the same split. Returns the split index.
|
|
/// </para>
|
|
/// </remarks>
|
|
[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);
|
|
}
|
|
}
|
|
}
|