mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 14:08:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
364
Brutal.Jolt/Generated/Classes/PathConstraint.gen.cs
Normal file
364
Brutal.Jolt/Generated/Classes/PathConstraint.gen.cs
Normal file
|
|
@ -0,0 +1,364 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Path constraint, used to constrain the degrees of freedom between two bodies to a path
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L79">Jolt/Physics/Constraints/PathConstraint.h:79</see>
|
||||
/// <br/>
|
||||
/// <c>class PathConstraint final : public TwoBodyConstraint</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct PathConstraint : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Construct point constraint
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
||||
public static PathConstraint Create(Body body1, Body body2, PathConstraintSettings settings) =>
|
||||
Jolt.PInvoke.PathConstraint_Create(body1, body2, settings);
|
||||
|
||||
/// <inheritdoc cref="Constraint.GetSubType()"/>
|
||||
public ConstraintSubType GetSubType() => ((Constraint)this).GetSubType();
|
||||
|
||||
/// <inheritdoc cref="Constraint.NotifyShapeChanged(uint, float3)"/>
|
||||
public void NotifyShapeChanged(uint bodyID, float3 deltaCOM) =>
|
||||
((Constraint)this).NotifyShapeChanged(bodyID, deltaCOM);
|
||||
|
||||
/// <inheritdoc cref="Constraint.SetupVelocityConstraint(float)"/>
|
||||
public void SetupVelocityConstraint(float deltaTime) => ((Constraint)this).SetupVelocityConstraint(deltaTime);
|
||||
|
||||
/// <inheritdoc cref="Constraint.ResetWarmStart()"/>
|
||||
public void ResetWarmStart() => ((Constraint)this).ResetWarmStart();
|
||||
|
||||
/// <inheritdoc cref="Constraint.WarmStartVelocityConstraint(float)"/>
|
||||
public void WarmStartVelocityConstraint(float warmStartImpulseRatio) =>
|
||||
((Constraint)this).WarmStartVelocityConstraint(warmStartImpulseRatio);
|
||||
|
||||
/// <inheritdoc cref="Constraint.SolveVelocityConstraint(float)"/>
|
||||
public bool SolveVelocityConstraint(float deltaTime) => ((Constraint)this).SolveVelocityConstraint(deltaTime);
|
||||
|
||||
/// <inheritdoc cref="Constraint.SolvePositionConstraint(float, float)"/>
|
||||
public bool SolvePositionConstraint(float deltaTime, float baumgarte) =>
|
||||
((Constraint)this).SolvePositionConstraint(deltaTime, baumgarte);
|
||||
|
||||
/// <inheritdoc cref="Constraint.DrawConstraint(DebugRenderer)"/>
|
||||
public void DrawConstraint(DebugRenderer renderer) => ((Constraint)this).DrawConstraint(renderer);
|
||||
|
||||
/// <inheritdoc cref="Constraint.IsActive()"/>
|
||||
public bool IsActive() => ((Constraint)this).IsActive();
|
||||
|
||||
/// <inheritdoc cref="Constraint.GetConstraintSettings()"/>
|
||||
public ConstraintSettings GetConstraintSettings() => ((Constraint)this).GetConstraintSettings();
|
||||
|
||||
/// <inheritdoc cref="TwoBodyConstraint.GetConstraintToBody1Matrix()"/>
|
||||
public float4x4 GetConstraintToBody1Matrix() => ((TwoBodyConstraint)this).GetConstraintToBody1Matrix();
|
||||
|
||||
/// <inheritdoc cref="TwoBodyConstraint.GetConstraintToBody2Matrix()"/>
|
||||
public float4x4 GetConstraintToBody2Matrix() => ((TwoBodyConstraint)this).GetConstraintToBody2Matrix();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Update the path for this constraint
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
||||
public void SetPath(PathConstraintPath path, float pathFraction) =>
|
||||
Jolt.PInvoke.PathConstraint_SetPath(this, path, pathFraction);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Access to the current path
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L111">Jolt/Physics/Constraints/PathConstraint.h:111</see>
|
||||
/// <br/>
|
||||
/// <c>const PathConstraintPath * GetPath() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The returned handle carries its own reference; Dispose it once when you're done.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public PathConstraintPath GetPath() => Jolt.PInvoke.PathConstraint_GetPath(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Access to the current fraction along the path e [0, GetPath()->GetMaxPathFraction()]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L114">Jolt/Physics/Constraints/PathConstraint.h:114</see>
|
||||
/// <br/>
|
||||
/// <c>float GetPathFraction() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetPathFraction() => Jolt.PInvoke.PathConstraint_GetPathFraction(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Friction control
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L117">Jolt/Physics/Constraints/PathConstraint.h:117</see>
|
||||
/// <br/>
|
||||
/// <c>void SetMaxFrictionForce(float inFrictionForce)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetMaxFrictionForce(float frictionForce) =>
|
||||
Jolt.PInvoke.PathConstraint_SetMaxFrictionForce(this, frictionForce);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L118">Jolt/Physics/Constraints/PathConstraint.h:118</see>
|
||||
/// <br/>
|
||||
/// <c>float GetMaxFrictionForce() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetMaxFrictionForce() => Jolt.PInvoke.PathConstraint_GetMaxFrictionForce(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Position motor settings
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L121">Jolt/Physics/Constraints/PathConstraint.h:121</see>
|
||||
/// <br/>
|
||||
/// <c>MotorSettings & GetPositionMotorSettings()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The returned handle is borrowed from its owner; don't Dispose it.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public MotorSettings GetPositionMotorSettings() => Jolt.PInvoke.PathConstraint_GetPositionMotorSettings(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Position motor controls (drives body 2 along the path)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L125">Jolt/Physics/Constraints/PathConstraint.h:125</see>
|
||||
/// <br/>
|
||||
/// <c>void SetPositionMotorState(EMotorState inState)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetPositionMotorState(MotorState state) =>
|
||||
Jolt.PInvoke.PathConstraint_SetPositionMotorState(this, state);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L126">Jolt/Physics/Constraints/PathConstraint.h:126</see>
|
||||
/// <br/>
|
||||
/// <c>EMotorState GetPositionMotorState() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public MotorState GetPositionMotorState() => Jolt.PInvoke.PathConstraint_GetPositionMotorState(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L127">Jolt/Physics/Constraints/PathConstraint.h:127</see>
|
||||
/// <br/>
|
||||
/// <c>void SetTargetVelocity(float inVelocity)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetTargetVelocity(float velocity) => Jolt.PInvoke.PathConstraint_SetTargetVelocity(this, velocity);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L128">Jolt/Physics/Constraints/PathConstraint.h:128</see>
|
||||
/// <br/>
|
||||
/// <c>float GetTargetVelocity() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetTargetVelocity() => Jolt.PInvoke.PathConstraint_GetTargetVelocity(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L129">Jolt/Physics/Constraints/PathConstraint.h:129</see>
|
||||
/// <br/>
|
||||
/// <c>void SetTargetPathFraction(float inFraction)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetTargetPathFraction(float fraction) =>
|
||||
Jolt.PInvoke.PathConstraint_SetTargetPathFraction(this, fraction);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L130">Jolt/Physics/Constraints/PathConstraint.h:130</see>
|
||||
/// <br/>
|
||||
/// <c>float GetTargetPathFraction() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetTargetPathFraction() => Jolt.PInvoke.PathConstraint_GetTargetPathFraction(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L133">Jolt/Physics/Constraints/PathConstraint.h:133</see>
|
||||
/// <br/>
|
||||
/// <c>inline Vector<2> GetTotalLambdaPosition() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// @name Get Lagrange multiplier from last physics update (the linear/angular impulse applied to satisfy
|
||||
/// the constraint)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float2 GetTotalLambdaPosition() => Jolt.PInvoke.PathConstraint_GetTotalLambdaPosition(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L134">Jolt/Physics/Constraints/PathConstraint.h:134</see>
|
||||
/// <br/>
|
||||
/// <c>inline float GetTotalLambdaPositionLimits() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetTotalLambdaPositionLimits() => Jolt.PInvoke.PathConstraint_GetTotalLambdaPositionLimits(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L135">Jolt/Physics/Constraints/PathConstraint.h:135</see>
|
||||
/// <br/>
|
||||
/// <c>inline float GetTotalLambdaMotor() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetTotalLambdaMotor() => Jolt.PInvoke.PathConstraint_GetTotalLambdaMotor(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L136">Jolt/Physics/Constraints/PathConstraint.h:136</see>
|
||||
/// <br/>
|
||||
/// <c>inline Vector<2> GetTotalLambdaRotationHinge() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float2 GetTotalLambdaRotationHinge() => Jolt.PInvoke.PathConstraint_GetTotalLambdaRotationHinge(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PathConstraint.h#L137">Jolt/Physics/Constraints/PathConstraint.h:137</see>
|
||||
/// <br/>
|
||||
/// <c>inline Vec3 GetTotalLambdaRotation() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetTotalLambdaRotation() => Jolt.PInvoke.PathConstraint_GetTotalLambdaRotation(this);
|
||||
|
||||
public void AddRef() => ((Constraint)this).AddRef();
|
||||
|
||||
public void Release() => ((Constraint)this).Release();
|
||||
|
||||
public uint GetRefCount() => ((Constraint)this).GetRefCount();
|
||||
|
||||
public static implicit operator TwoBodyConstraint(PathConstraint value) =>
|
||||
Unsafe.BitCast<PathConstraint, TwoBodyConstraint>(value);
|
||||
|
||||
public static implicit operator Constraint(PathConstraint value) =>
|
||||
Unsafe.BitCast<PathConstraint, Constraint>(value);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull())
|
||||
return;
|
||||
Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="TwoBodyConstraint.GetBody1()"/>
|
||||
public Body GetBody1() => ((TwoBodyConstraint)this).GetBody1();
|
||||
|
||||
/// <inheritdoc cref="TwoBodyConstraint.GetBody2()"/>
|
||||
public Body GetBody2() => ((TwoBodyConstraint)this).GetBody2();
|
||||
|
||||
/// <inheritdoc cref="Constraint.GetConstraintType()"/>
|
||||
public ConstraintType GetConstraintType() => ((Constraint)this).GetConstraintType();
|
||||
|
||||
/// <inheritdoc cref="Constraint.GetConstraintPriority()"/>
|
||||
public uint GetConstraintPriority() => ((Constraint)this).GetConstraintPriority();
|
||||
|
||||
/// <inheritdoc cref="Constraint.SetConstraintPriority(uint)"/>
|
||||
public void SetConstraintPriority(uint priority) => ((Constraint)this).SetConstraintPriority(priority);
|
||||
|
||||
/// <inheritdoc cref="Constraint.SetNumVelocityStepsOverride(uint)"/>
|
||||
public void SetNumVelocityStepsOverride(uint n) => ((Constraint)this).SetNumVelocityStepsOverride(n);
|
||||
|
||||
/// <inheritdoc cref="Constraint.GetNumVelocityStepsOverride()"/>
|
||||
public uint GetNumVelocityStepsOverride() => ((Constraint)this).GetNumVelocityStepsOverride();
|
||||
|
||||
/// <inheritdoc cref="Constraint.SetNumPositionStepsOverride(uint)"/>
|
||||
public void SetNumPositionStepsOverride(uint n) => ((Constraint)this).SetNumPositionStepsOverride(n);
|
||||
|
||||
/// <inheritdoc cref="Constraint.GetNumPositionStepsOverride()"/>
|
||||
public uint GetNumPositionStepsOverride() => ((Constraint)this).GetNumPositionStepsOverride();
|
||||
|
||||
/// <inheritdoc cref="Constraint.SetEnabled(bool)"/>
|
||||
public void SetEnabled(bool enabled) => ((Constraint)this).SetEnabled(enabled);
|
||||
|
||||
/// <inheritdoc cref="Constraint.GetEnabled()"/>
|
||||
public bool GetEnabled() => ((Constraint)this).GetEnabled();
|
||||
|
||||
/// <inheritdoc cref="Constraint.GetUserData()"/>
|
||||
public ulong GetUserData() => ((Constraint)this).GetUserData();
|
||||
|
||||
/// <inheritdoc cref="Constraint.SetUserData(ulong)"/>
|
||||
public void SetUserData(ulong userData) => ((Constraint)this).SetUserData(userData);
|
||||
|
||||
/// <inheritdoc cref="Constraint.BuildIslands(uint, IslandBuilder, BodyManager)"/>
|
||||
public void BuildIslands(uint constraintIndex, IslandBuilder builder, BodyManager bodyManager) =>
|
||||
((Constraint)this).BuildIslands(constraintIndex, builder, bodyManager);
|
||||
|
||||
/// <inheritdoc cref="Constraint.BuildIslandSplits(LargeIslandSplitter)"/>
|
||||
public uint BuildIslandSplits(LargeIslandSplitter splitter) => ((Constraint)this).BuildIslandSplits(splitter);
|
||||
|
||||
/// <inheritdoc cref="Constraint.DrawConstraintLimits(DebugRenderer)"/>
|
||||
public void DrawConstraintLimits(DebugRenderer renderer) => ((Constraint)this).DrawConstraintLimits(renderer);
|
||||
|
||||
/// <inheritdoc cref="Constraint.DrawConstraintReferenceFrame(DebugRenderer)"/>
|
||||
public void DrawConstraintReferenceFrame(DebugRenderer renderer) =>
|
||||
((Constraint)this).DrawConstraintReferenceFrame(renderer);
|
||||
|
||||
/// <inheritdoc cref="Constraint.GetDrawConstraintSize()"/>
|
||||
public float GetDrawConstraintSize() => ((Constraint)this).GetDrawConstraintSize();
|
||||
|
||||
/// <inheritdoc cref="Constraint.SetDrawConstraintSize(float)"/>
|
||||
public void SetDrawConstraintSize(float size) => ((Constraint)this).SetDrawConstraintSize(size);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue