mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
459 lines
22 KiB
C#
459 lines
22 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>
|
|
/// Slider constraint settings, used to create a slider constraint
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L16">Jolt/Physics/Constraints/SliderConstraint.h:16</see>
|
|
/// <br/>
|
|
/// <c>class SliderConstraintSettings final : public TwoBodyConstraintSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct SliderConstraintSettings : IDisposable
|
|
{
|
|
public static SliderConstraintSettings Create() => Jolt.PInvoke.SliderConstraintSettings_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>
|
|
/// Simple way of setting the slider and normal axis in world space (assumes the bodies are already oriented
|
|
/// correctly when the constraint is created)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L29">Jolt/Physics/Constraints/SliderConstraint.h:29</see>
|
|
/// <br/>
|
|
/// <c>void SetSliderAxis(Vec3Arg inSliderAxis)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetSliderAxis(float3 sliderAxis) =>
|
|
Jolt.PInvoke.SliderConstraintSettings_SetSliderAxis(this, sliderAxis);
|
|
|
|
/// <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/SliderConstraint.h#L32">Jolt/Physics/Constraints/SliderConstraint.h:32</see>
|
|
/// <br/>
|
|
/// <c>EConstraintSpace mSpace = EConstraintSpace::WorldSpace</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ConstraintSpace GetSpace() => Jolt.PInvoke.SliderConstraintSettings_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/SliderConstraint.h#L32">Jolt/Physics/Constraints/SliderConstraint.h:32</see>
|
|
/// <br/>
|
|
/// <c>EConstraintSpace mSpace = EConstraintSpace::WorldSpace</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetSpace(ConstraintSpace value) => Jolt.PInvoke.SliderConstraintSettings_SetSpace(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// When mSpace is WorldSpace mPoint1 and mPoint2 can be automatically calculated based on the positions of
|
|
/// the bodies when the constraint is created (the current relative position/orientation is chosen as the
|
|
/// '0' position). Set this to false if you want to supply the attachment points yourself.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L35">Jolt/Physics/Constraints/SliderConstraint.h:35</see>
|
|
/// <br/>
|
|
/// <c>bool mAutoDetectPoint = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public bool GetAutoDetectPoint() => Jolt.PInvoke.SliderConstraintSettings_GetAutoDetectPoint(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// When mSpace is WorldSpace mPoint1 and mPoint2 can be automatically calculated based on the positions of
|
|
/// the bodies when the constraint is created (the current relative position/orientation is chosen as the
|
|
/// '0' position). Set this to false if you want to supply the attachment points yourself.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L35">Jolt/Physics/Constraints/SliderConstraint.h:35</see>
|
|
/// <br/>
|
|
/// <c>bool mAutoDetectPoint = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetAutoDetectPoint(bool value) =>
|
|
Jolt.PInvoke.SliderConstraintSettings_SetAutoDetectPoint(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Body 1 constraint reference frame (space determined by mSpace). Slider axis is the axis along which
|
|
/// movement is possible (direction), normal axis is a perpendicular vector to define the frame.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L39">Jolt/Physics/Constraints/SliderConstraint.h:39</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mPoint1 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetPoint1() => Jolt.PInvoke.SliderConstraintSettings_GetPoint1(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Body 1 constraint reference frame (space determined by mSpace). Slider axis is the axis along which
|
|
/// movement is possible (direction), normal axis is a perpendicular vector to define the frame.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L39">Jolt/Physics/Constraints/SliderConstraint.h:39</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mPoint1 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetPoint1(float3 value) => Jolt.PInvoke.SliderConstraintSettings_SetPoint1(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L40">Jolt/Physics/Constraints/SliderConstraint.h:40</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mSliderAxis1 = Vec3::sAxisX()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetSliderAxis1() => Jolt.PInvoke.SliderConstraintSettings_GetSliderAxis1(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L40">Jolt/Physics/Constraints/SliderConstraint.h:40</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mSliderAxis1 = Vec3::sAxisX()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetSliderAxis1(float3 value) => Jolt.PInvoke.SliderConstraintSettings_SetSliderAxis1(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L41">Jolt/Physics/Constraints/SliderConstraint.h:41</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mNormalAxis1 = Vec3::sAxisY()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetNormalAxis1() => Jolt.PInvoke.SliderConstraintSettings_GetNormalAxis1(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L41">Jolt/Physics/Constraints/SliderConstraint.h:41</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mNormalAxis1 = Vec3::sAxisY()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetNormalAxis1(float3 value) => Jolt.PInvoke.SliderConstraintSettings_SetNormalAxis1(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Body 2 constraint reference frame (space determined by mSpace)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L44">Jolt/Physics/Constraints/SliderConstraint.h:44</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mPoint2 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetPoint2() => Jolt.PInvoke.SliderConstraintSettings_GetPoint2(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Body 2 constraint reference frame (space determined by mSpace)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L44">Jolt/Physics/Constraints/SliderConstraint.h:44</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mPoint2 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetPoint2(float3 value) => Jolt.PInvoke.SliderConstraintSettings_SetPoint2(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L45">Jolt/Physics/Constraints/SliderConstraint.h:45</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mSliderAxis2 = Vec3::sAxisX()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetSliderAxis2() => Jolt.PInvoke.SliderConstraintSettings_GetSliderAxis2(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L45">Jolt/Physics/Constraints/SliderConstraint.h:45</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mSliderAxis2 = Vec3::sAxisX()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetSliderAxis2(float3 value) => Jolt.PInvoke.SliderConstraintSettings_SetSliderAxis2(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L46">Jolt/Physics/Constraints/SliderConstraint.h:46</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mNormalAxis2 = Vec3::sAxisY()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetNormalAxis2() => Jolt.PInvoke.SliderConstraintSettings_GetNormalAxis2(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L46">Jolt/Physics/Constraints/SliderConstraint.h:46</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mNormalAxis2 = Vec3::sAxisY()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetNormalAxis2(float3 value) => Jolt.PInvoke.SliderConstraintSettings_SetNormalAxis2(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// When the bodies move so that mPoint1 coincides with mPoint2 the slider position is defined to be 0,
|
|
/// movement will be limited between [mLimitsMin, mLimitsMax] where mLimitsMin e [-inf, 0] and mLimitsMax e
|
|
/// [0, inf]
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L49">Jolt/Physics/Constraints/SliderConstraint.h:49</see>
|
|
/// <br/>
|
|
/// <c>float mLimitsMin = -FLT_MAX</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetLimitsMin() => Jolt.PInvoke.SliderConstraintSettings_GetLimitsMin(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// When the bodies move so that mPoint1 coincides with mPoint2 the slider position is defined to be 0,
|
|
/// movement will be limited between [mLimitsMin, mLimitsMax] where mLimitsMin e [-inf, 0] and mLimitsMax e
|
|
/// [0, inf]
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L49">Jolt/Physics/Constraints/SliderConstraint.h:49</see>
|
|
/// <br/>
|
|
/// <c>float mLimitsMin = -FLT_MAX</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetLimitsMin(float value) => Jolt.PInvoke.SliderConstraintSettings_SetLimitsMin(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L50">Jolt/Physics/Constraints/SliderConstraint.h:50</see>
|
|
/// <br/>
|
|
/// <c>float mLimitsMax = FLT_MAX</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetLimitsMax() => Jolt.PInvoke.SliderConstraintSettings_GetLimitsMax(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L50">Jolt/Physics/Constraints/SliderConstraint.h:50</see>
|
|
/// <br/>
|
|
/// <c>float mLimitsMax = FLT_MAX</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetLimitsMax(float value) => Jolt.PInvoke.SliderConstraintSettings_SetLimitsMax(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// When enabled, this makes the limits soft. When the constraint exceeds the limits, a spring force will
|
|
/// pull it back.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L53">Jolt/Physics/Constraints/SliderConstraint.h:53</see>
|
|
/// <br/>
|
|
/// <c>SpringSettings mLimitsSpringSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is an owned copy; Dispose it when you're done with it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public SpringSettings GetLimitsSpringSettings() =>
|
|
Jolt.PInvoke.SliderConstraintSettings_GetLimitsSpringSettings(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// When enabled, this makes the limits soft. When the constraint exceeds the limits, a spring force will
|
|
/// pull it back.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L53">Jolt/Physics/Constraints/SliderConstraint.h:53</see>
|
|
/// <br/>
|
|
/// <c>SpringSettings mLimitsSpringSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The value is copied into the field; the handle you pass stays yours to Dispose.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetLimitsSpringSettings(SpringSettings value) =>
|
|
Jolt.PInvoke.SliderConstraintSettings_SetLimitsSpringSettings(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum amount of friction force to apply (N) when not driven by a motor.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L56">Jolt/Physics/Constraints/SliderConstraint.h:56</see>
|
|
/// <br/>
|
|
/// <c>float mMaxFrictionForce = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMaxFrictionForce() => Jolt.PInvoke.SliderConstraintSettings_GetMaxFrictionForce(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum amount of friction force to apply (N) when not driven by a motor.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L56">Jolt/Physics/Constraints/SliderConstraint.h:56</see>
|
|
/// <br/>
|
|
/// <c>float mMaxFrictionForce = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxFrictionForce(float value) =>
|
|
Jolt.PInvoke.SliderConstraintSettings_SetMaxFrictionForce(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// In case the constraint is powered, this determines the motor settings around the sliding axis
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L59">Jolt/Physics/Constraints/SliderConstraint.h:59</see>
|
|
/// <br/>
|
|
/// <c>MotorSettings mMotorSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is an owned copy; Dispose it when you're done with it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public MotorSettings GetMotorSettings() => Jolt.PInvoke.SliderConstraintSettings_GetMotorSettings(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// In case the constraint is powered, this determines the motor settings around the sliding axis
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/SliderConstraint.h#L59">Jolt/Physics/Constraints/SliderConstraint.h:59</see>
|
|
/// <br/>
|
|
/// <c>MotorSettings mMotorSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The value is copied into the field; the handle you pass stays yours to Dispose.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetMotorSettings(MotorSettings value) =>
|
|
Jolt.PInvoke.SliderConstraintSettings_SetMotorSettings(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(SliderConstraintSettings value) =>
|
|
Unsafe.BitCast<SliderConstraintSettings, TwoBodyConstraintSettings>(value);
|
|
|
|
public static implicit operator ConstraintSettings(SliderConstraintSettings value) =>
|
|
Unsafe.BitCast<SliderConstraintSettings, 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);
|
|
}
|
|
}
|