mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
278 lines
14 KiB
C#
278 lines
14 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using Brutal.Interop;
|
|
using Brutal.Numerics;
|
|
namespace Brutal.JoltApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L14">Jolt/Physics/Constraints/FixedConstraint.h:14</see>
|
|
/// <br/>
|
|
/// <c>class FixedConstraintSettings final : public TwoBodyConstraintSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Fixed constraint settings, used to create a fixed constraint
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct FixedConstraintSettings : IDisposable
|
|
{
|
|
public static FixedConstraintSettings Create() => Jolt.PInvoke.FixedConstraintSettings_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L16">Jolt/Physics/Constraints/FixedConstraint.h:16</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public RTTI GetRTTI() => Jolt.PInvoke.FixedConstraintSettings_GetRTTI(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L16">Jolt/Physics/Constraints/FixedConstraint.h:16</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.FixedConstraintSettings_CastTo(this, rTTI);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L20">Jolt/Physics/Constraints/FixedConstraint.h:20</see>
|
|
/// <br/>
|
|
/// <c>virtual void SaveBinaryState(StreamOut &inStream) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See: ConstraintSettings::SaveBinaryState
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.FixedConstraintSettings_SaveBinaryState(this, stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L23">Jolt/Physics/Constraints/FixedConstraint.h:23</see>
|
|
/// <br/>
|
|
/// <c>virtual TwoBodyConstraint * Create(Body &inBody1, Body &inBody2) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Create an instance of this constraint
|
|
/// </para>
|
|
/// </remarks>
|
|
public TwoBodyConstraint Create(Body body1, Body body2) => Jolt.PInvoke.FixedConstraintSettings_Create_2(this, body1, body2);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L26">Jolt/Physics/Constraints/FixedConstraint.h:26</see>
|
|
/// <br/>
|
|
/// <c>EConstraintSpace mSpace = EConstraintSpace::WorldSpace</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// This determines in which space the constraint is setup, all properties below should be in the specified
|
|
/// space
|
|
/// </para>
|
|
/// </remarks>
|
|
public EConstraintSpace GetSpace() => Jolt.PInvoke.FixedConstraintSettings_GetSpace(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L26">Jolt/Physics/Constraints/FixedConstraint.h:26</see>
|
|
/// <br/>
|
|
/// <c>EConstraintSpace mSpace = EConstraintSpace::WorldSpace</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// This determines in which space the constraint is setup, all properties below should be in the specified
|
|
/// space
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetSpace(EConstraintSpace value) => Jolt.PInvoke.FixedConstraintSettings_SetSpace(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L29">Jolt/Physics/Constraints/FixedConstraint.h:29</see>
|
|
/// <br/>
|
|
/// <c>bool mAutoDetectPoint = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// When mSpace is WorldSpace mPoint1 and mPoint2 can be automatically calculated based on the positions of
|
|
/// the bodies when the constraint is created (they will be fixated in their current relative
|
|
/// position/orientation). Set this to false if you want to supply the attachment points yourself.
|
|
/// </para>
|
|
/// </remarks>
|
|
public bool GetAutoDetectPoint() => Jolt.PInvoke.FixedConstraintSettings_GetAutoDetectPoint(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L29">Jolt/Physics/Constraints/FixedConstraint.h:29</see>
|
|
/// <br/>
|
|
/// <c>bool mAutoDetectPoint = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// When mSpace is WorldSpace mPoint1 and mPoint2 can be automatically calculated based on the positions of
|
|
/// the bodies when the constraint is created (they will be fixated in their current relative
|
|
/// position/orientation). Set this to false if you want to supply the attachment points yourself.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetAutoDetectPoint(bool value) => Jolt.PInvoke.FixedConstraintSettings_SetAutoDetectPoint(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L32">Jolt/Physics/Constraints/FixedConstraint.h:32</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mPoint1 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Body 1 constraint reference frame (space determined by mSpace)
|
|
/// </para>
|
|
/// </remarks>
|
|
public float3 GetPoint1() => Jolt.PInvoke.FixedConstraintSettings_GetPoint1(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L32">Jolt/Physics/Constraints/FixedConstraint.h:32</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mPoint1 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Body 1 constraint reference frame (space determined by mSpace)
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetPoint1(float3 value) => Jolt.PInvoke.FixedConstraintSettings_SetPoint1(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L33">Jolt/Physics/Constraints/FixedConstraint.h:33</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mAxisX1 = Vec3::sAxisX()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetAxisX1() => Jolt.PInvoke.FixedConstraintSettings_GetAxisX1(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L33">Jolt/Physics/Constraints/FixedConstraint.h:33</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mAxisX1 = Vec3::sAxisX()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetAxisX1(float3 value) => Jolt.PInvoke.FixedConstraintSettings_SetAxisX1(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L34">Jolt/Physics/Constraints/FixedConstraint.h:34</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mAxisY1 = Vec3::sAxisY()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetAxisY1() => Jolt.PInvoke.FixedConstraintSettings_GetAxisY1(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L34">Jolt/Physics/Constraints/FixedConstraint.h:34</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mAxisY1 = Vec3::sAxisY()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetAxisY1(float3 value) => Jolt.PInvoke.FixedConstraintSettings_SetAxisY1(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L37">Jolt/Physics/Constraints/FixedConstraint.h:37</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mPoint2 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Body 2 constraint reference frame (space determined by mSpace)
|
|
/// </para>
|
|
/// </remarks>
|
|
public float3 GetPoint2() => Jolt.PInvoke.FixedConstraintSettings_GetPoint2(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L37">Jolt/Physics/Constraints/FixedConstraint.h:37</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mPoint2 = RVec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Body 2 constraint reference frame (space determined by mSpace)
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetPoint2(float3 value) => Jolt.PInvoke.FixedConstraintSettings_SetPoint2(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L38">Jolt/Physics/Constraints/FixedConstraint.h:38</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mAxisX2 = Vec3::sAxisX()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetAxisX2() => Jolt.PInvoke.FixedConstraintSettings_GetAxisX2(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L38">Jolt/Physics/Constraints/FixedConstraint.h:38</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mAxisX2 = Vec3::sAxisX()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetAxisX2(float3 value) => Jolt.PInvoke.FixedConstraintSettings_SetAxisX2(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L39">Jolt/Physics/Constraints/FixedConstraint.h:39</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mAxisY2 = Vec3::sAxisY()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetAxisY2() => Jolt.PInvoke.FixedConstraintSettings_GetAxisY2(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/FixedConstraint.h#L39">Jolt/Physics/Constraints/FixedConstraint.h:39</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mAxisY2 = Vec3::sAxisY()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetAxisY2(float3 value) => Jolt.PInvoke.FixedConstraintSettings_SetAxisY2(this, value);
|
|
public void AddRef() => Jolt.PInvoke.FixedConstraintSettings_AddRef(this);
|
|
public void Release() => Jolt.PInvoke.FixedConstraintSettings_Release(this);
|
|
public uint GetRefCount() => Jolt.PInvoke.FixedConstraintSettings_GetRefCount(this);
|
|
public static implicit operator TwoBodyConstraintSettings(FixedConstraintSettings value) => Jolt.PInvoke.FixedConstraintSettings_AsTwoBodyConstraintSettings(value);
|
|
public static implicit operator ConstraintSettings(FixedConstraintSettings value) => Jolt.PInvoke.FixedConstraintSettings_AsConstraintSettings(value);
|
|
public void Dispose()
|
|
{
|
|
if (IsNull()) return;
|
|
Release();
|
|
}
|
|
}
|
|
}
|