mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 21:48:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
228
Brutal.Jolt/Generated/Classes/PointConstraint.gen.cs
Normal file
228
Brutal.Jolt/Generated/Classes/PointConstraint.gen.cs
Normal file
|
|
@ -0,0 +1,228 @@
|
|||
// <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>
|
||||
/// A point constraint constrains 2 bodies on a single point (removing 3 degrees of freedom)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PointConstraint.h#L40">Jolt/Physics/Constraints/PointConstraint.h:40</see>
|
||||
/// <br/>
|
||||
/// <c>class PointConstraint final : public TwoBodyConstraint</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct PointConstraint : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Construct point constraint
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PointConstraint.h#L46">Jolt/Physics/Constraints/PointConstraint.h:46</see>
|
||||
/// <br/>
|
||||
/// <c>PointConstraint(Body &inBody1, Body &inBody2, const PointConstraintSettings &inSettings)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static PointConstraint Create(Body body1, Body body2, PointConstraintSettings settings) =>
|
||||
Jolt.PInvoke.PointConstraint_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.GetConstraintSettings()"/>
|
||||
public ConstraintSettings GetConstraintSettings() => ((Constraint)this).GetConstraintSettings();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Update the attachment point for body 1
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PointConstraint.h#L64">Jolt/Physics/Constraints/PointConstraint.h:64</see>
|
||||
/// <br/>
|
||||
/// <c>void SetPoint1(EConstraintSpace inSpace, RVec3Arg inPoint1)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetPoint1(ConstraintSpace space, float3 point1) =>
|
||||
Jolt.PInvoke.PointConstraint_SetPoint1(this, space, point1);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Update the attachment point for body 2
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PointConstraint.h#L67">Jolt/Physics/Constraints/PointConstraint.h:67</see>
|
||||
/// <br/>
|
||||
/// <c>void SetPoint2(EConstraintSpace inSpace, RVec3Arg inPoint2)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetPoint2(ConstraintSpace space, float3 point2) =>
|
||||
Jolt.PInvoke.PointConstraint_SetPoint2(this, space, point2);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Get the attachment point for body 1 relative to body 1 COM (transform by Body::GetCenterOfMassTransform
|
||||
/// to take to world space)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PointConstraint.h#L70">Jolt/Physics/Constraints/PointConstraint.h:70</see>
|
||||
/// <br/>
|
||||
/// <c>inline Vec3 GetLocalSpacePoint1() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetLocalSpacePoint1() => Jolt.PInvoke.PointConstraint_GetLocalSpacePoint1(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Get the attachment point for body 2 relative to body 2 COM (transform by Body::GetCenterOfMassTransform
|
||||
/// to take to world space)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PointConstraint.h#L73">Jolt/Physics/Constraints/PointConstraint.h:73</see>
|
||||
/// <br/>
|
||||
/// <c>inline Vec3 GetLocalSpacePoint2() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetLocalSpacePoint2() => Jolt.PInvoke.PointConstraint_GetLocalSpacePoint2(this);
|
||||
|
||||
/// <inheritdoc cref="TwoBodyConstraint.GetConstraintToBody1Matrix()"/>
|
||||
public float4x4 GetConstraintToBody1Matrix() => ((TwoBodyConstraint)this).GetConstraintToBody1Matrix();
|
||||
|
||||
/// <inheritdoc cref="TwoBodyConstraint.GetConstraintToBody2Matrix()"/>
|
||||
public float4x4 GetConstraintToBody2Matrix() => ((TwoBodyConstraint)this).GetConstraintToBody2Matrix();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PointConstraint.h#L80">Jolt/Physics/Constraints/PointConstraint.h:80</see>
|
||||
/// <br/>
|
||||
/// <c>inline Vec3 GetTotalLambdaPosition() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// @name Get Lagrange multiplier from last physics update (the linear impulse applied to satisfy the
|
||||
/// constraint)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float3 GetTotalLambdaPosition() => Jolt.PInvoke.PointConstraint_GetTotalLambdaPosition(this);
|
||||
|
||||
public void AddRef() => ((Constraint)this).AddRef();
|
||||
|
||||
public void Release() => ((Constraint)this).Release();
|
||||
|
||||
public uint GetRefCount() => ((Constraint)this).GetRefCount();
|
||||
|
||||
public static implicit operator TwoBodyConstraint(PointConstraint value) =>
|
||||
Unsafe.BitCast<PointConstraint, TwoBodyConstraint>(value);
|
||||
|
||||
public static implicit operator Constraint(PointConstraint value) =>
|
||||
Unsafe.BitCast<PointConstraint, 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.IsActive()"/>
|
||||
public bool IsActive() => ((Constraint)this).IsActive();
|
||||
|
||||
/// <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