mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
315 lines
15 KiB
C#
315 lines
15 KiB
C#
// <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>
|
|
/// Pulley constraint settings, used to create a pulley constraint. A pulley connects two bodies via two fixed
|
|
/// world points to each other similar to a distance constraint. We define Length1 = |BodyPoint1 - FixedPoint1|
|
|
/// where Body1 is a point on body 1 in world space and FixedPoint1 a fixed point in world space Length2 =
|
|
/// |BodyPoint2 - FixedPoint2| The constraint keeps the two line segments constrained so that MinDistance <=
|
|
/// Length1 + Ratio * Length2 <= MaxDistance
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L18">Jolt/Physics/Constraints/PulleyConstraint.h:18</see>
|
|
/// <br/>
|
|
/// <c>class PulleyConstraintSettings final : public TwoBodyConstraintSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct PulleyConstraintSettings : IDisposable
|
|
{
|
|
public static PulleyConstraintSettings Create() => Jolt.PInvoke.PulleyConstraintSettings_Create();
|
|
|
|
/// <inheritdoc cref="ConstraintSettings.GetRTTI()"/>
|
|
public RTTI GetRTTI() => ((ConstraintSettings)this).GetRTTI();
|
|
|
|
/// <inheritdoc cref="ConstraintSettings.CastTo(RTTI)"/>
|
|
public unsafe Ptr CastTo(RTTI rtti) => ((ConstraintSettings)this).CastTo(rtti);
|
|
|
|
/// <inheritdoc cref="ConstraintSettings.SaveBinaryState(StreamOut)"/>
|
|
public void SaveBinaryState(StreamOut stream) => ((ConstraintSettings)this).SaveBinaryState(stream);
|
|
|
|
/// <inheritdoc cref="TwoBodyConstraintSettings.Create(Body, Body)"/>
|
|
public TwoBodyConstraint Create(Body body1, Body body2) =>
|
|
((TwoBodyConstraintSettings)this).Create(body1, body2);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// This determines in which space the constraint is setup, specified properties below should be in the
|
|
/// specified space
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L30">Jolt/Physics/Constraints/PulleyConstraint.h:30</see>
|
|
/// <br/>
|
|
/// <c>EConstraintSpace mSpace = EConstraintSpace::WorldSpace</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ConstraintSpace GetSpace() => Jolt.PInvoke.PulleyConstraintSettings_GetSpace(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// This determines in which space the constraint is setup, specified properties below should be in the
|
|
/// specified space
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L30">Jolt/Physics/Constraints/PulleyConstraint.h:30</see>
|
|
/// <br/>
|
|
/// <c>EConstraintSpace mSpace = EConstraintSpace::WorldSpace</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetSpace(ConstraintSpace value) => Jolt.PInvoke.PulleyConstraintSettings_SetSpace(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Body 1 constraint attachment point (space determined by mSpace).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L33">Jolt/Physics/Constraints/PulleyConstraint.h:33</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mBodyPoint1 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetBodyPoint1() => Jolt.PInvoke.PulleyConstraintSettings_GetBodyPoint1(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Body 1 constraint attachment point (space determined by mSpace).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L33">Jolt/Physics/Constraints/PulleyConstraint.h:33</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mBodyPoint1 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetBodyPoint1(float3 value) => Jolt.PInvoke.PulleyConstraintSettings_SetBodyPoint1(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Fixed world point to which body 1 is connected (always world space)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L36">Jolt/Physics/Constraints/PulleyConstraint.h:36</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mFixedPoint1 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetFixedPoint1() => Jolt.PInvoke.PulleyConstraintSettings_GetFixedPoint1(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Fixed world point to which body 1 is connected (always world space)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L36">Jolt/Physics/Constraints/PulleyConstraint.h:36</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mFixedPoint1 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetFixedPoint1(float3 value) => Jolt.PInvoke.PulleyConstraintSettings_SetFixedPoint1(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Body 2 constraint attachment point (space determined by mSpace)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L39">Jolt/Physics/Constraints/PulleyConstraint.h:39</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mBodyPoint2 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetBodyPoint2() => Jolt.PInvoke.PulleyConstraintSettings_GetBodyPoint2(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Body 2 constraint attachment point (space determined by mSpace)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L39">Jolt/Physics/Constraints/PulleyConstraint.h:39</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mBodyPoint2 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetBodyPoint2(float3 value) => Jolt.PInvoke.PulleyConstraintSettings_SetBodyPoint2(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Fixed world point to which body 2 is connected (always world space)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L42">Jolt/Physics/Constraints/PulleyConstraint.h:42</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mFixedPoint2 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetFixedPoint2() => Jolt.PInvoke.PulleyConstraintSettings_GetFixedPoint2(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Fixed world point to which body 2 is connected (always world space)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L42">Jolt/Physics/Constraints/PulleyConstraint.h:42</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mFixedPoint2 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetFixedPoint2(float3 value) => Jolt.PInvoke.PulleyConstraintSettings_SetFixedPoint2(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Ratio between the two line segments (see formula above), can be used to create a block and tackle
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L45">Jolt/Physics/Constraints/PulleyConstraint.h:45</see>
|
|
/// <br/>
|
|
/// <c>float mRatio = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetRatio() => Jolt.PInvoke.PulleyConstraintSettings_GetRatio(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Ratio between the two line segments (see formula above), can be used to create a block and tackle
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L45">Jolt/Physics/Constraints/PulleyConstraint.h:45</see>
|
|
/// <br/>
|
|
/// <c>float mRatio = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetRatio(float value) => Jolt.PInvoke.PulleyConstraintSettings_SetRatio(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// The minimum length of the line segments (see formula above), use -1 to calculate the length based on the
|
|
/// positions of the objects when the constraint is created.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L48">Jolt/Physics/Constraints/PulleyConstraint.h:48</see>
|
|
/// <br/>
|
|
/// <c>float mMinLength = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMinLength() => Jolt.PInvoke.PulleyConstraintSettings_GetMinLength(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// The minimum length of the line segments (see formula above), use -1 to calculate the length based on the
|
|
/// positions of the objects when the constraint is created.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L48">Jolt/Physics/Constraints/PulleyConstraint.h:48</see>
|
|
/// <br/>
|
|
/// <c>float mMinLength = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMinLength(float value) => Jolt.PInvoke.PulleyConstraintSettings_SetMinLength(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// The maximum length of the line segments (see formula above), use -1 to calculate the length based on the
|
|
/// positions of the objects when the constraint is created.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L51">Jolt/Physics/Constraints/PulleyConstraint.h:51</see>
|
|
/// <br/>
|
|
/// <c>float mMaxLength = -1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMaxLength() => Jolt.PInvoke.PulleyConstraintSettings_GetMaxLength(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// The maximum length of the line segments (see formula above), use -1 to calculate the length based on the
|
|
/// positions of the objects when the constraint is created.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/PulleyConstraint.h#L51">Jolt/Physics/Constraints/PulleyConstraint.h:51</see>
|
|
/// <br/>
|
|
/// <c>float mMaxLength = -1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxLength(float value) => Jolt.PInvoke.PulleyConstraintSettings_SetMaxLength(this, value);
|
|
|
|
public void AddRef() => ((ConstraintSettings)this).AddRef();
|
|
|
|
public void Release() => ((ConstraintSettings)this).Release();
|
|
|
|
public uint GetRefCount() => ((ConstraintSettings)this).GetRefCount();
|
|
|
|
public static implicit operator TwoBodyConstraintSettings(PulleyConstraintSettings value) =>
|
|
Unsafe.BitCast<PulleyConstraintSettings, TwoBodyConstraintSettings>(value);
|
|
|
|
public static implicit operator ConstraintSettings(PulleyConstraintSettings value) =>
|
|
Unsafe.BitCast<PulleyConstraintSettings, ConstraintSettings>(value);
|
|
|
|
public void Dispose()
|
|
{
|
|
if (IsNull())
|
|
return;
|
|
Release();
|
|
}
|
|
|
|
/// <inheritdoc cref="ConstraintSettings.GetEnabled()"/>
|
|
public bool GetEnabled() => ((ConstraintSettings)this).GetEnabled();
|
|
|
|
/// <inheritdoc cref="ConstraintSettings.SetEnabled(bool)"/>
|
|
public void SetEnabled(bool value) => ((ConstraintSettings)this).SetEnabled(value);
|
|
|
|
/// <inheritdoc cref="ConstraintSettings.GetConstraintPriority()"/>
|
|
public uint GetConstraintPriority() => ((ConstraintSettings)this).GetConstraintPriority();
|
|
|
|
/// <inheritdoc cref="ConstraintSettings.SetConstraintPriority(uint)"/>
|
|
public void SetConstraintPriority(uint value) => ((ConstraintSettings)this).SetConstraintPriority(value);
|
|
|
|
/// <inheritdoc cref="ConstraintSettings.GetNumVelocityStepsOverride()"/>
|
|
public uint GetNumVelocityStepsOverride() => ((ConstraintSettings)this).GetNumVelocityStepsOverride();
|
|
|
|
/// <inheritdoc cref="ConstraintSettings.SetNumVelocityStepsOverride(uint)"/>
|
|
public void SetNumVelocityStepsOverride(uint value) =>
|
|
((ConstraintSettings)this).SetNumVelocityStepsOverride(value);
|
|
|
|
/// <inheritdoc cref="ConstraintSettings.GetNumPositionStepsOverride()"/>
|
|
public uint GetNumPositionStepsOverride() => ((ConstraintSettings)this).GetNumPositionStepsOverride();
|
|
|
|
/// <inheritdoc cref="ConstraintSettings.SetNumPositionStepsOverride(uint)"/>
|
|
public void SetNumPositionStepsOverride(uint value) =>
|
|
((ConstraintSettings)this).SetNumPositionStepsOverride(value);
|
|
|
|
/// <inheritdoc cref="ConstraintSettings.GetDrawConstraintSize()"/>
|
|
public float GetDrawConstraintSize() => ((ConstraintSettings)this).GetDrawConstraintSize();
|
|
|
|
/// <inheritdoc cref="ConstraintSettings.SetDrawConstraintSize(float)"/>
|
|
public void SetDrawConstraintSize(float value) => ((ConstraintSettings)this).SetDrawConstraintSize(value);
|
|
|
|
/// <inheritdoc cref="ConstraintSettings.GetUserData()"/>
|
|
public ulong GetUserData() => ((ConstraintSettings)this).GetUserData();
|
|
|
|
/// <inheritdoc cref="ConstraintSettings.SetUserData(ulong)"/>
|
|
public void SetUserData(ulong value) => ((ConstraintSettings)this).SetUserData(value);
|
|
}
|
|
}
|