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
191
Brutal.Jolt/Generated/Classes/TwoBodyConstraint.gen.cs
Normal file
191
Brutal.Jolt/Generated/Classes/TwoBodyConstraint.gen.cs
Normal file
|
|
@ -0,0 +1,191 @@
|
|||
// <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>
|
||||
/// Base class for all constraints that involve 2 bodies. Body1 is usually considered the parent, Body2 the
|
||||
/// child.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/TwoBodyConstraint.h#L26">Jolt/Physics/Constraints/TwoBodyConstraint.h:26</see>
|
||||
/// <br/>
|
||||
/// <c>class TwoBodyConstraint : public Constraint</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct TwoBodyConstraint : IDisposable
|
||||
{
|
||||
/// <inheritdoc cref="Constraint.GetConstraintType()"/>
|
||||
public ConstraintType GetConstraintType() => ((Constraint)this).GetConstraintType();
|
||||
|
||||
/// <inheritdoc cref="Constraint.IsActive()"/>
|
||||
public bool IsActive() => ((Constraint)this).IsActive();
|
||||
|
||||
/// <inheritdoc cref="Constraint.DrawConstraintReferenceFrame(DebugRenderer)"/>
|
||||
public void DrawConstraintReferenceFrame(DebugRenderer renderer) =>
|
||||
((Constraint)this).DrawConstraintReferenceFrame(renderer);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Access to the connected bodies
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/TwoBodyConstraint.h#L44">Jolt/Physics/Constraints/TwoBodyConstraint.h:44</see>
|
||||
/// <br/>
|
||||
/// <c>Body * GetBody1() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The returned handle is borrowed from its owner; don't Dispose it.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public Body GetBody1() => Jolt.PInvoke.TwoBodyConstraint_GetBody1(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/TwoBodyConstraint.h#L45">Jolt/Physics/Constraints/TwoBodyConstraint.h:45</see>
|
||||
/// <br/>
|
||||
/// <c>Body * GetBody2() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The returned handle is borrowed from its owner; don't Dispose it.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public Body GetBody2() => Jolt.PInvoke.TwoBodyConstraint_GetBody2(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Calculates the transform that transforms from constraint space to body 1 space. The first column of the
|
||||
/// matrix is the primary constraint axis (e.g. the hinge axis / slider direction), second column the
|
||||
/// secondary etc.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/TwoBodyConstraint.h#L48">Jolt/Physics/Constraints/TwoBodyConstraint.h:48</see>
|
||||
/// <br/>
|
||||
/// <c>virtual Mat44 GetConstraintToBody1Matrix() const = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float4x4 GetConstraintToBody1Matrix() => Jolt.PInvoke.TwoBodyConstraint_GetConstraintToBody1Matrix(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Calculates the transform that transforms from constraint space to body 2 space. The first column of the
|
||||
/// matrix is the primary constraint axis (e.g. the hinge axis / slider direction), second column the
|
||||
/// secondary etc.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/TwoBodyConstraint.h#L51">Jolt/Physics/Constraints/TwoBodyConstraint.h:51</see>
|
||||
/// <br/>
|
||||
/// <c>virtual Mat44 GetConstraintToBody2Matrix() const = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float4x4 GetConstraintToBody2Matrix() => Jolt.PInvoke.TwoBodyConstraint_GetConstraintToBody2Matrix(this);
|
||||
|
||||
/// <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);
|
||||
|
||||
public void AddRef() => ((Constraint)this).AddRef();
|
||||
|
||||
public void Release() => ((Constraint)this).Release();
|
||||
|
||||
public uint GetRefCount() => ((Constraint)this).GetRefCount();
|
||||
|
||||
public static implicit operator Constraint(TwoBodyConstraint value) =>
|
||||
Unsafe.BitCast<TwoBodyConstraint, Constraint>(value);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull())
|
||||
return;
|
||||
Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Constraint.GetSubType()"/>
|
||||
public ConstraintSubType GetSubType() => ((Constraint)this).GetSubType();
|
||||
|
||||
/// <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.NotifyShapeChanged(uint, float3)"/>
|
||||
public void NotifyShapeChanged(uint bodyID, float3 deltaCOM) =>
|
||||
((Constraint)this).NotifyShapeChanged(bodyID, deltaCOM);
|
||||
|
||||
/// <inheritdoc cref="Constraint.ResetWarmStart()"/>
|
||||
public void ResetWarmStart() => ((Constraint)this).ResetWarmStart();
|
||||
|
||||
/// <inheritdoc cref="Constraint.SetupVelocityConstraint(float)"/>
|
||||
public void SetupVelocityConstraint(float deltaTime) => ((Constraint)this).SetupVelocityConstraint(deltaTime);
|
||||
|
||||
/// <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.DrawConstraintLimits(DebugRenderer)"/>
|
||||
public void DrawConstraintLimits(DebugRenderer renderer) => ((Constraint)this).DrawConstraintLimits(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);
|
||||
|
||||
/// <inheritdoc cref="Constraint.GetConstraintSettings()"/>
|
||||
public ConstraintSettings GetConstraintSettings() => ((Constraint)this).GetConstraintSettings();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue