mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
539 lines
25 KiB
C#
539 lines
25 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>
|
|
/// Swing twist constraint settings, used to create a swing twist constraint All values in this structure are
|
|
/// copied to the swing twist constraint and the settings object is no longer needed afterwards.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L20">Jolt/Physics/Constraints/SwingTwistConstraint.h:20</see>
|
|
/// <br/>
|
|
/// <c>class SwingTwistConstraintSettings final : public TwoBodyConstraintSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Swing twist constraint settings, used to create a swing twist constraint
|
|
/// All values in this structure are copied to the swing twist constraint and the settings object is no longer needed afterwards.
|
|
///
|
|
/// This image describes the limit settings:
|
|
/// @image html Docs/SwingTwistConstraint.png
|
|
/// </code>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct SwingTwistConstraintSettings : IDisposable
|
|
{
|
|
public static SwingTwistConstraintSettings Create() => Jolt.PInvoke.SwingTwistConstraintSettings_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, all properties below should be in the specified
|
|
/// space
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L32">Jolt/Physics/Constraints/SwingTwistConstraint.h:32</see>
|
|
/// <br/>
|
|
/// <c>EConstraintSpace mSpace = EConstraintSpace::WorldSpace</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ConstraintSpace GetSpace() => Jolt.PInvoke.SwingTwistConstraintSettings_GetSpace(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// This determines in which space the constraint is setup, all properties below should be in the specified
|
|
/// space
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L32">Jolt/Physics/Constraints/SwingTwistConstraint.h:32</see>
|
|
/// <br/>
|
|
/// <c>EConstraintSpace mSpace = EConstraintSpace::WorldSpace</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetSpace(ConstraintSpace value) => Jolt.PInvoke.SwingTwistConstraintSettings_SetSpace(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L35">Jolt/Physics/Constraints/SwingTwistConstraint.h:35</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mPosition1 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Body 1 constraint reference frame (space determined by mSpace)
|
|
/// </para>
|
|
/// </remarks>
|
|
public float3 GetPosition1() => Jolt.PInvoke.SwingTwistConstraintSettings_GetPosition1(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L35">Jolt/Physics/Constraints/SwingTwistConstraint.h:35</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mPosition1 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Body 1 constraint reference frame (space determined by mSpace)
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetPosition1(float3 value) => Jolt.PInvoke.SwingTwistConstraintSettings_SetPosition1(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L36">Jolt/Physics/Constraints/SwingTwistConstraint.h:36</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mTwistAxis1 = Vec3::sAxisX()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetTwistAxis1() => Jolt.PInvoke.SwingTwistConstraintSettings_GetTwistAxis1(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L36">Jolt/Physics/Constraints/SwingTwistConstraint.h:36</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mTwistAxis1 = Vec3::sAxisX()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetTwistAxis1(float3 value) => Jolt.PInvoke.SwingTwistConstraintSettings_SetTwistAxis1(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L37">Jolt/Physics/Constraints/SwingTwistConstraint.h:37</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mPlaneAxis1 = Vec3::sAxisY()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetPlaneAxis1() => Jolt.PInvoke.SwingTwistConstraintSettings_GetPlaneAxis1(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L37">Jolt/Physics/Constraints/SwingTwistConstraint.h:37</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mPlaneAxis1 = Vec3::sAxisY()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetPlaneAxis1(float3 value) => Jolt.PInvoke.SwingTwistConstraintSettings_SetPlaneAxis1(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L40">Jolt/Physics/Constraints/SwingTwistConstraint.h:40</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mPosition2 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Body 2 constraint reference frame (space determined by mSpace)
|
|
/// </para>
|
|
/// </remarks>
|
|
public float3 GetPosition2() => Jolt.PInvoke.SwingTwistConstraintSettings_GetPosition2(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L40">Jolt/Physics/Constraints/SwingTwistConstraint.h:40</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mPosition2 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Body 2 constraint reference frame (space determined by mSpace)
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetPosition2(float3 value) => Jolt.PInvoke.SwingTwistConstraintSettings_SetPosition2(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L41">Jolt/Physics/Constraints/SwingTwistConstraint.h:41</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mTwistAxis2 = Vec3::sAxisX()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetTwistAxis2() => Jolt.PInvoke.SwingTwistConstraintSettings_GetTwistAxis2(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L41">Jolt/Physics/Constraints/SwingTwistConstraint.h:41</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mTwistAxis2 = Vec3::sAxisX()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetTwistAxis2(float3 value) => Jolt.PInvoke.SwingTwistConstraintSettings_SetTwistAxis2(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L42">Jolt/Physics/Constraints/SwingTwistConstraint.h:42</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mPlaneAxis2 = Vec3::sAxisY()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetPlaneAxis2() => Jolt.PInvoke.SwingTwistConstraintSettings_GetPlaneAxis2(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L42">Jolt/Physics/Constraints/SwingTwistConstraint.h:42</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mPlaneAxis2 = Vec3::sAxisY()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetPlaneAxis2(float3 value) => Jolt.PInvoke.SwingTwistConstraintSettings_SetPlaneAxis2(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// The type of swing constraint that we want to use.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L45">Jolt/Physics/Constraints/SwingTwistConstraint.h:45</see>
|
|
/// <br/>
|
|
/// <c>ESwingType mSwingType = ESwingType::Cone</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public SwingType GetSwingType() => Jolt.PInvoke.SwingTwistConstraintSettings_GetSwingType(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// The type of swing constraint that we want to use.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L45">Jolt/Physics/Constraints/SwingTwistConstraint.h:45</see>
|
|
/// <br/>
|
|
/// <c>ESwingType mSwingType = ESwingType::Cone</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetSwingType(SwingType value) =>
|
|
Jolt.PInvoke.SwingTwistConstraintSettings_SetSwingType(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// See image at Detailed Description. Angle in radians.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L48">Jolt/Physics/Constraints/SwingTwistConstraint.h:48</see>
|
|
/// <br/>
|
|
/// <c>float mNormalHalfConeAngle = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Swing rotation limits
|
|
/// </para>
|
|
/// </remarks>
|
|
public float GetNormalHalfConeAngle() => Jolt.PInvoke.SwingTwistConstraintSettings_GetNormalHalfConeAngle(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// See image at Detailed Description. Angle in radians.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L48">Jolt/Physics/Constraints/SwingTwistConstraint.h:48</see>
|
|
/// <br/>
|
|
/// <c>float mNormalHalfConeAngle = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Swing rotation limits
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetNormalHalfConeAngle(float value) =>
|
|
Jolt.PInvoke.SwingTwistConstraintSettings_SetNormalHalfConeAngle(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// See image at Detailed Description. Angle in radians.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L49">Jolt/Physics/Constraints/SwingTwistConstraint.h:49</see>
|
|
/// <br/>
|
|
/// <c>float mPlaneHalfConeAngle = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetPlaneHalfConeAngle() => Jolt.PInvoke.SwingTwistConstraintSettings_GetPlaneHalfConeAngle(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// See image at Detailed Description. Angle in radians.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L49">Jolt/Physics/Constraints/SwingTwistConstraint.h:49</see>
|
|
/// <br/>
|
|
/// <c>float mPlaneHalfConeAngle = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetPlaneHalfConeAngle(float value) =>
|
|
Jolt.PInvoke.SwingTwistConstraintSettings_SetPlaneHalfConeAngle(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// See image at Detailed Description. Angle in radians. Should be \f$\in [-\pi, \pi]\f$.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L52">Jolt/Physics/Constraints/SwingTwistConstraint.h:52</see>
|
|
/// <br/>
|
|
/// <c>float mTwistMinAngle = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Twist rotation limits
|
|
/// </para>
|
|
/// </remarks>
|
|
public float GetTwistMinAngle() => Jolt.PInvoke.SwingTwistConstraintSettings_GetTwistMinAngle(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// See image at Detailed Description. Angle in radians. Should be \f$\in [-\pi, \pi]\f$.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L52">Jolt/Physics/Constraints/SwingTwistConstraint.h:52</see>
|
|
/// <br/>
|
|
/// <c>float mTwistMinAngle = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Twist rotation limits
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetTwistMinAngle(float value) =>
|
|
Jolt.PInvoke.SwingTwistConstraintSettings_SetTwistMinAngle(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// See image at Detailed Description. Angle in radians. Should be \f$\in [-\pi, \pi]\f$.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L53">Jolt/Physics/Constraints/SwingTwistConstraint.h:53</see>
|
|
/// <br/>
|
|
/// <c>float mTwistMaxAngle = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetTwistMaxAngle() => Jolt.PInvoke.SwingTwistConstraintSettings_GetTwistMaxAngle(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// See image at Detailed Description. Angle in radians. Should be \f$\in [-\pi, \pi]\f$.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L53">Jolt/Physics/Constraints/SwingTwistConstraint.h:53</see>
|
|
/// <br/>
|
|
/// <c>float mTwistMaxAngle = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetTwistMaxAngle(float value) =>
|
|
Jolt.PInvoke.SwingTwistConstraintSettings_SetTwistMaxAngle(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum amount of torque (N m) to apply as friction when the constraint is not powered by a motor
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L56">Jolt/Physics/Constraints/SwingTwistConstraint.h:56</see>
|
|
/// <br/>
|
|
/// <c>float mMaxFrictionTorque = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Friction
|
|
/// </para>
|
|
/// </remarks>
|
|
public float GetMaxFrictionTorque() => Jolt.PInvoke.SwingTwistConstraintSettings_GetMaxFrictionTorque(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum amount of torque (N m) to apply as friction when the constraint is not powered by a motor
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L56">Jolt/Physics/Constraints/SwingTwistConstraint.h:56</see>
|
|
/// <br/>
|
|
/// <c>float mMaxFrictionTorque = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Friction
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetMaxFrictionTorque(float value) =>
|
|
Jolt.PInvoke.SwingTwistConstraintSettings_SetMaxFrictionTorque(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L59">Jolt/Physics/Constraints/SwingTwistConstraint.h:59</see>
|
|
/// <br/>
|
|
/// <c>MotorSettings mSwingMotorSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name In case the constraint is powered, this determines the motor settings around the swing and twist
|
|
/// axis
|
|
/// </para>
|
|
/// <para>
|
|
/// The returned handle is an owned copy; Dispose it when you're done with it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public MotorSettings GetSwingMotorSettings() =>
|
|
Jolt.PInvoke.SwingTwistConstraintSettings_GetSwingMotorSettings(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L59">Jolt/Physics/Constraints/SwingTwistConstraint.h:59</see>
|
|
/// <br/>
|
|
/// <c>MotorSettings mSwingMotorSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name In case the constraint is powered, this determines the motor settings around the swing and twist
|
|
/// axis
|
|
/// </para>
|
|
/// <para>
|
|
/// The value is copied into the field; the handle you pass stays yours to Dispose.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetSwingMotorSettings(MotorSettings value) =>
|
|
Jolt.PInvoke.SwingTwistConstraintSettings_SetSwingMotorSettings(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L60">Jolt/Physics/Constraints/SwingTwistConstraint.h:60</see>
|
|
/// <br/>
|
|
/// <c>MotorSettings mTwistMotorSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is an owned copy; Dispose it when you're done with it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public MotorSettings GetTwistMotorSettings() =>
|
|
Jolt.PInvoke.SwingTwistConstraintSettings_GetTwistMotorSettings(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SwingTwistConstraint.h#L60">Jolt/Physics/Constraints/SwingTwistConstraint.h:60</see>
|
|
/// <br/>
|
|
/// <c>MotorSettings mTwistMotorSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The value is copied into the field; the handle you pass stays yours to Dispose.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetTwistMotorSettings(MotorSettings value) =>
|
|
Jolt.PInvoke.SwingTwistConstraintSettings_SetTwistMotorSettings(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(SwingTwistConstraintSettings value) =>
|
|
Unsafe.BitCast<SwingTwistConstraintSettings, TwoBodyConstraintSettings>(value);
|
|
|
|
public static implicit operator ConstraintSettings(SwingTwistConstraintSettings value) =>
|
|
Unsafe.BitCast<SwingTwistConstraintSettings, 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);
|
|
}
|
|
}
|