mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
129
Brutal.Jolt/Generated/Classes/DualAxisConstraintPart.gen.cs
Normal file
129
Brutal.Jolt/Generated/Classes/DualAxisConstraintPart.gen.cs
Normal file
|
|
@ -0,0 +1,129 @@
|
|||
// <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>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/ConstraintPart/DualAxisConstraintPart.h#L47">Jolt/Physics/Constraints/ConstraintPart/DualAxisConstraintPart.h:47</see>
|
||||
/// <br/>
|
||||
/// <c>class DualAxisConstraintPart</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct DualAxisConstraintPart : IDisposable
|
||||
{
|
||||
public static DualAxisConstraintPart Create() => Jolt.PInvoke.DualAxisConstraintPart_Create();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Calculate properties used during the functions below All input vectors are in world space
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/ConstraintPart/DualAxisConstraintPart.h#L102">Jolt/Physics/Constraints/ConstraintPart/DualAxisConstraintPart.h:102</see>
|
||||
/// <br/>
|
||||
/// <c>inline void CalculateConstraintProperties(const Body &inBody1, Mat44Arg inRotation1, Vec3Arg inR1PlusU, const Body &inBody2, Mat44Arg inRotation2, Vec3Arg inR2, Vec3Arg inN1, Vec3Arg inN2)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void CalculateConstraintProperties(
|
||||
Body body1,
|
||||
in float4x4 rotation1,
|
||||
float3 r1PlusU,
|
||||
Body body2,
|
||||
in float4x4 rotation2,
|
||||
float3 r2,
|
||||
float3 n1,
|
||||
float3 n2
|
||||
) =>
|
||||
Jolt.PInvoke.DualAxisConstraintPart_CalculateConstraintProperties(
|
||||
this,
|
||||
body1,
|
||||
in rotation1,
|
||||
r1PlusU,
|
||||
body2,
|
||||
in rotation2,
|
||||
r2,
|
||||
n1,
|
||||
n2
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Deactivate this constraint
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/ConstraintPart/DualAxisConstraintPart.h#L158">Jolt/Physics/Constraints/ConstraintPart/DualAxisConstraintPart.h:158</see>
|
||||
/// <br/>
|
||||
/// <c>inline void Deactivate()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void Deactivate() => Jolt.PInvoke.DualAxisConstraintPart_Deactivate(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Check if constraint is active
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/ConstraintPart/DualAxisConstraintPart.h#L165">Jolt/Physics/Constraints/ConstraintPart/DualAxisConstraintPart.h:165</see>
|
||||
/// <br/>
|
||||
/// <c>inline bool IsActive() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public bool IsActive() => Jolt.PInvoke.DualAxisConstraintPart_IsActive(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Must be called from the WarmStartVelocityConstraint call to apply the previous frame's impulses All
|
||||
/// input vectors are in world space
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/ConstraintPart/DualAxisConstraintPart.h#L172">Jolt/Physics/Constraints/ConstraintPart/DualAxisConstraintPart.h:172</see>
|
||||
/// <br/>
|
||||
/// <c>inline void WarmStart(Body &ioBody1, Body &ioBody2, Vec3Arg inN1, Vec3Arg inN2, float inWarmStartImpulseRatio)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void WarmStart(Body body1, Body body2, float3 n1, float3 n2, float warmStartImpulseRatio) =>
|
||||
Jolt.PInvoke.DualAxisConstraintPart_WarmStart(this, body1, body2, n1, n2, warmStartImpulseRatio);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Iteratively update the velocity constraint. Makes sure d/dt C(...) = 0, where C is the constraint
|
||||
/// equation. All input vectors are in world space
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/ConstraintPart/DualAxisConstraintPart.h#L180">Jolt/Physics/Constraints/ConstraintPart/DualAxisConstraintPart.h:180</see>
|
||||
/// <br/>
|
||||
/// <c>inline bool SolveVelocityConstraint(Body &ioBody1, Body &ioBody2, Vec3Arg inN1, Vec3Arg inN2)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public bool SolveVelocityConstraint(Body body1, Body body2, float3 n1, float3 n2) =>
|
||||
Jolt.PInvoke.DualAxisConstraintPart_SolveVelocityConstraint(this, body1, body2, n1, n2);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Iteratively update the position constraint. Makes sure C(...) = 0. All input vectors are in world space
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/ConstraintPart/DualAxisConstraintPart.h#L193">Jolt/Physics/Constraints/ConstraintPart/DualAxisConstraintPart.h:193</see>
|
||||
/// <br/>
|
||||
/// <c>inline bool SolvePositionConstraint(Body &ioBody1, Body &ioBody2, Vec3Arg inU, Vec3Arg inN1, Vec3Arg inN2, float inBaumgarte) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public bool SolvePositionConstraint(Body body1, Body body2, float3 u, float3 n1, float3 n2, float baumgarte) =>
|
||||
Jolt.PInvoke.DualAxisConstraintPart_SolvePositionConstraint(this, body1, body2, u, n1, n2, baumgarte);
|
||||
|
||||
public void Dispose() => Jolt.PInvoke.DualAxisConstraintPart_Destroy(this);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue