mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
95 lines
5.6 KiB
C#
95 lines
5.6 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 = "HingeRotationConstraintPart_Create")]
|
|
public static partial HingeRotationConstraintPart HingeRotationConstraintPart_Create();
|
|
[LibraryImport("jolt", EntryPoint = "HingeRotationConstraintPart_Destroy")]
|
|
public static partial void HingeRotationConstraintPart_Destroy(HingeRotationConstraintPart self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/HingeRotationConstraintPart.h#L76">Jolt/Physics/Constraints/ConstraintPart/HingeRotationConstraintPart.h:76</see>
|
|
/// <br/>
|
|
/// <c>inline void CalculateConstraintProperties(const Body &inBody1, Mat44Arg inRotation1, Vec3Arg inWorldSpaceHingeAxis1, const Body &inBody2, Mat44Arg inRotation2, Vec3Arg inWorldSpaceHingeAxis2)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Calculate properties used during the functions below
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HingeRotationConstraintPart_CalculateConstraintProperties")]
|
|
public static partial void HingeRotationConstraintPart_CalculateConstraintProperties(HingeRotationConstraintPart self, Body body1, float4x4 rotation1, float3 worldSpaceHingeAxis1, Body body2, float4x4 rotation2, float3 worldSpaceHingeAxis2);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/HingeRotationConstraintPart.h#L119">Jolt/Physics/Constraints/ConstraintPart/HingeRotationConstraintPart.h:119</see>
|
|
/// <br/>
|
|
/// <c>inline void Deactivate()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Deactivate this constraint
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HingeRotationConstraintPart_Deactivate")]
|
|
public static partial void HingeRotationConstraintPart_Deactivate(HingeRotationConstraintPart self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/HingeRotationConstraintPart.h#L126">Jolt/Physics/Constraints/ConstraintPart/HingeRotationConstraintPart.h:126</see>
|
|
/// <br/>
|
|
/// <c>inline void WarmStart(Body &ioBody1, Body &ioBody2, float inWarmStartImpulseRatio)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Must be called from the WarmStartVelocityConstraint call to apply the previous frame's impulses
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HingeRotationConstraintPart_WarmStart")]
|
|
public static partial void HingeRotationConstraintPart_WarmStart(HingeRotationConstraintPart self, Body body1, Body body2, float warmStartImpulseRatio);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/HingeRotationConstraintPart.h#L133">Jolt/Physics/Constraints/ConstraintPart/HingeRotationConstraintPart.h:133</see>
|
|
/// <br/>
|
|
/// <c>inline bool SolveVelocityConstraint(Body &ioBody1, Body &ioBody2)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Iteratively update the velocity constraint. Makes sure d/dt C(...) = 0, where C is the constraint
|
|
/// equation.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HingeRotationConstraintPart_SolveVelocityConstraint")]
|
|
public static partial Brutal.Bool8 HingeRotationConstraintPart_SolveVelocityConstraint(HingeRotationConstraintPart self, Body body1, Body body2);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/ConstraintPart/HingeRotationConstraintPart.h#L151">Jolt/Physics/Constraints/ConstraintPart/HingeRotationConstraintPart.h:151</see>
|
|
/// <br/>
|
|
/// <c>inline bool SolvePositionConstraint(Body &ioBody1, Body &ioBody2, float inBaumgarte) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Iteratively update the position constraint. Makes sure C(...) = 0.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HingeRotationConstraintPart_SolvePositionConstraint")]
|
|
public static partial Brutal.Bool8 HingeRotationConstraintPart_SolvePositionConstraint(HingeRotationConstraintPart self, Body body1, Body body2, float baumgarte);
|
|
}
|
|
}
|
|
}
|