mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
353 lines
20 KiB
C#
353 lines
20 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/PathConstraint.h#L85">Jolt/Physics/Constraints/PathConstraint.h:85</see>
|
|
/// <br/>
|
|
/// <c>PathConstraint(Body &inBody1, Body &inBody2, const PathConstraintSettings &inSettings)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Construct point constraint
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_Create")]
|
|
public static partial PathConstraint PathConstraint_Create(Body body1, Body body2, PathConstraintSettings settings);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L88">Jolt/Physics/Constraints/PathConstraint.h:88</see>
|
|
/// <br/>
|
|
/// <c>virtual EConstraintSubType GetSubType() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Generic interface of a constraint
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_GetSubType")]
|
|
public static partial EConstraintSubType PathConstraint_GetSubType(PathConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L89">Jolt/Physics/Constraints/PathConstraint.h:89</see>
|
|
/// <br/>
|
|
/// <c>virtual void NotifyShapeChanged(const BodyID &inBodyID, Vec3Arg inDeltaCOM) override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_NotifyShapeChanged")]
|
|
public static partial void PathConstraint_NotifyShapeChanged(PathConstraint self, uint bodyID, float3 deltaCOM);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L90">Jolt/Physics/Constraints/PathConstraint.h:90</see>
|
|
/// <br/>
|
|
/// <c>virtual void SetupVelocityConstraint(float inDeltaTime) override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_SetupVelocityConstraint")]
|
|
public static partial void PathConstraint_SetupVelocityConstraint(PathConstraint self, float deltaTime);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L91">Jolt/Physics/Constraints/PathConstraint.h:91</see>
|
|
/// <br/>
|
|
/// <c>virtual void ResetWarmStart() override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_ResetWarmStart")]
|
|
public static partial void PathConstraint_ResetWarmStart(PathConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L92">Jolt/Physics/Constraints/PathConstraint.h:92</see>
|
|
/// <br/>
|
|
/// <c>virtual void WarmStartVelocityConstraint(float inWarmStartImpulseRatio) override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_WarmStartVelocityConstraint")]
|
|
public static partial void PathConstraint_WarmStartVelocityConstraint(PathConstraint self, float warmStartImpulseRatio);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L93">Jolt/Physics/Constraints/PathConstraint.h:93</see>
|
|
/// <br/>
|
|
/// <c>virtual bool SolveVelocityConstraint(float inDeltaTime) override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_SolveVelocityConstraint")]
|
|
public static partial Brutal.Bool8 PathConstraint_SolveVelocityConstraint(PathConstraint self, float deltaTime);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L94">Jolt/Physics/Constraints/PathConstraint.h:94</see>
|
|
/// <br/>
|
|
/// <c>virtual bool SolvePositionConstraint(float inDeltaTime, float inBaumgarte) override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_SolvePositionConstraint")]
|
|
public static partial Brutal.Bool8 PathConstraint_SolvePositionConstraint(PathConstraint self, float deltaTime, float baumgarte);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L96">Jolt/Physics/Constraints/PathConstraint.h:96</see>
|
|
/// <br/>
|
|
/// <c>virtual void DrawConstraint(DebugRenderer *inRenderer) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_DrawConstraint")]
|
|
public static partial void PathConstraint_DrawConstraint(PathConstraint self, DebugRenderer renderer);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L100">Jolt/Physics/Constraints/PathConstraint.h:100</see>
|
|
/// <br/>
|
|
/// <c>virtual bool IsActive() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_IsActive")]
|
|
public static partial Brutal.Bool8 PathConstraint_IsActive(PathConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L101">Jolt/Physics/Constraints/PathConstraint.h:101</see>
|
|
/// <br/>
|
|
/// <c>virtual Ref<ConstraintSettings> GetConstraintSettings() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_GetConstraintSettings")]
|
|
public static partial ConstraintSettings PathConstraint_GetConstraintSettings(PathConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L104">Jolt/Physics/Constraints/PathConstraint.h:104</see>
|
|
/// <br/>
|
|
/// <c>virtual Mat44 GetConstraintToBody1Matrix() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See: TwoBodyConstraint
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_GetConstraintToBody1Matrix")]
|
|
public static partial float4x4 PathConstraint_GetConstraintToBody1Matrix(PathConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L105">Jolt/Physics/Constraints/PathConstraint.h:105</see>
|
|
/// <br/>
|
|
/// <c>virtual Mat44 GetConstraintToBody2Matrix() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_GetConstraintToBody2Matrix")]
|
|
public static partial float4x4 PathConstraint_GetConstraintToBody2Matrix(PathConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L108">Jolt/Physics/Constraints/PathConstraint.h:108</see>
|
|
/// <br/>
|
|
/// <c>void SetPath(const PathConstraintPath *inPath, float inPathFraction)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Update the path for this constraint
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_SetPath")]
|
|
public static partial void PathConstraint_SetPath(PathConstraint self, PathConstraintPath path, float pathFraction);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L111">Jolt/Physics/Constraints/PathConstraint.h:111</see>
|
|
/// <br/>
|
|
/// <c>const PathConstraintPath * GetPath() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Access to the current path
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_GetPath")]
|
|
public static partial PathConstraintPath PathConstraint_GetPath(PathConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L114">Jolt/Physics/Constraints/PathConstraint.h:114</see>
|
|
/// <br/>
|
|
/// <c>float GetPathFraction() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Access to the current fraction along the path e [0, GetPath()->GetMaxPathFraction()]
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_GetPathFraction")]
|
|
public static partial float PathConstraint_GetPathFraction(PathConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L117">Jolt/Physics/Constraints/PathConstraint.h:117</see>
|
|
/// <br/>
|
|
/// <c>void SetMaxFrictionForce(float inFrictionForce)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Friction control
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_SetMaxFrictionForce")]
|
|
public static partial void PathConstraint_SetMaxFrictionForce(PathConstraint self, float frictionForce);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L118">Jolt/Physics/Constraints/PathConstraint.h:118</see>
|
|
/// <br/>
|
|
/// <c>float GetMaxFrictionForce() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_GetMaxFrictionForce")]
|
|
public static partial float PathConstraint_GetMaxFrictionForce(PathConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L121">Jolt/Physics/Constraints/PathConstraint.h:121</see>
|
|
/// <br/>
|
|
/// <c>MotorSettings & GetPositionMotorSettings()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Position motor settings
|
|
/// </para>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_GetPositionMotorSettings")]
|
|
public static partial MotorSettings PathConstraint_GetPositionMotorSettings(PathConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L125">Jolt/Physics/Constraints/PathConstraint.h:125</see>
|
|
/// <br/>
|
|
/// <c>void SetPositionMotorState(EMotorState inState)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Position motor controls (drives body 2 along the path)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_SetPositionMotorState")]
|
|
public static partial void PathConstraint_SetPositionMotorState(PathConstraint self, EMotorState state);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L126">Jolt/Physics/Constraints/PathConstraint.h:126</see>
|
|
/// <br/>
|
|
/// <c>EMotorState GetPositionMotorState() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_GetPositionMotorState")]
|
|
public static partial EMotorState PathConstraint_GetPositionMotorState(PathConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L127">Jolt/Physics/Constraints/PathConstraint.h:127</see>
|
|
/// <br/>
|
|
/// <c>void SetTargetVelocity(float inVelocity)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_SetTargetVelocity")]
|
|
public static partial void PathConstraint_SetTargetVelocity(PathConstraint self, float velocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L128">Jolt/Physics/Constraints/PathConstraint.h:128</see>
|
|
/// <br/>
|
|
/// <c>float GetTargetVelocity() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_GetTargetVelocity")]
|
|
public static partial float PathConstraint_GetTargetVelocity(PathConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L129">Jolt/Physics/Constraints/PathConstraint.h:129</see>
|
|
/// <br/>
|
|
/// <c>void SetTargetPathFraction(float inFraction)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_SetTargetPathFraction")]
|
|
public static partial void PathConstraint_SetTargetPathFraction(PathConstraint self, float fraction);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L130">Jolt/Physics/Constraints/PathConstraint.h:130</see>
|
|
/// <br/>
|
|
/// <c>float GetTargetPathFraction() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_GetTargetPathFraction")]
|
|
public static partial float PathConstraint_GetTargetPathFraction(PathConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L134">Jolt/Physics/Constraints/PathConstraint.h:134</see>
|
|
/// <br/>
|
|
/// <c>inline float GetTotalLambdaPositionLimits() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_GetTotalLambdaPositionLimits")]
|
|
public static partial float PathConstraint_GetTotalLambdaPositionLimits(PathConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L135">Jolt/Physics/Constraints/PathConstraint.h:135</see>
|
|
/// <br/>
|
|
/// <c>inline float GetTotalLambdaMotor() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_GetTotalLambdaMotor")]
|
|
public static partial float PathConstraint_GetTotalLambdaMotor(PathConstraint self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraint.h#L137">Jolt/Physics/Constraints/PathConstraint.h:137</see>
|
|
/// <br/>
|
|
/// <c>inline Vec3 GetTotalLambdaRotation() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_GetTotalLambdaRotation")]
|
|
public static partial float3 PathConstraint_GetTotalLambdaRotation(PathConstraint self);
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_AddRef")]
|
|
public static partial void PathConstraint_AddRef(PathConstraint self);
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_Release")]
|
|
public static partial void PathConstraint_Release(PathConstraint self);
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_GetRefCount")]
|
|
public static partial uint PathConstraint_GetRefCount(PathConstraint self);
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_AsTwoBodyConstraint")]
|
|
public static partial TwoBodyConstraint PathConstraint_AsTwoBodyConstraint(PathConstraint self);
|
|
[LibraryImport("jolt", EntryPoint = "PathConstraint_AsConstraint")]
|
|
public static partial Constraint PathConstraint_AsConstraint(PathConstraint self);
|
|
}
|
|
}
|
|
}
|