brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/WheelSettings.gen.cs
2026-10-15 14:12:02 +13:00

396 lines
20 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/Vehicle/Wheel.h#L18">Jolt/Physics/Vehicle/Wheel.h:18</see>
/// <br/>
/// <c>class WheelSettings : public SerializableObject, public RefTarget&lt;WheelSettings&gt;</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Base class for wheel settings, each VehicleController can implement a derived class of this
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct WheelSettings : IDisposable
{
public static WheelSettings Create() => Jolt.PInvoke.WheelSettings_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L20">Jolt/Physics/Vehicle/Wheel.h:20</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.WheelSettings_GetRTTI(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L20">Jolt/Physics/Vehicle/Wheel.h:20</see>
/// <br/>
/// <c></c>
/// </para>
/// </summary>
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.WheelSettings_CastTo(this, rTTI);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L24">Jolt/Physics/Vehicle/Wheel.h:24</see>
/// <br/>
/// <c>virtual void SaveBinaryState(StreamOut &amp;inStream) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Saves the contents in binary form to inStream.
/// </para>
/// </remarks>
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.WheelSettings_SaveBinaryState(this, stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L27">Jolt/Physics/Vehicle/Wheel.h:27</see>
/// <br/>
/// <c>virtual void RestoreBinaryState(StreamIn &amp;inStream)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Restores the contents in binary form to inStream.
/// </para>
/// </remarks>
public void RestoreBinaryState(StreamIn stream) => Jolt.PInvoke.WheelSettings_RestoreBinaryState(this, stream);
/// <summary>
/// <para>
/// Attachment point of wheel suspension in local space of the body
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L29">Jolt/Physics/Vehicle/Wheel.h:29</see>
/// <br/>
/// <c>Vec3 mPosition { 0, 0, 0 }</c>
/// </para>
/// </summary>
public float3 GetPosition() => Jolt.PInvoke.WheelSettings_GetPosition(this);
/// <summary>
/// <para>
/// Attachment point of wheel suspension in local space of the body
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L29">Jolt/Physics/Vehicle/Wheel.h:29</see>
/// <br/>
/// <c>Vec3 mPosition { 0, 0, 0 }</c>
/// </para>
/// </summary>
public void SetPosition(float3 value) => Jolt.PInvoke.WheelSettings_SetPosition(this, value);
/// <summary>
/// <para>
/// Where tire forces (suspension and traction) are applied, in local space of the body. A good default is
/// the center of the wheel in its neutral pose. See mEnableSuspensionForcePoint.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L30">Jolt/Physics/Vehicle/Wheel.h:30</see>
/// <br/>
/// <c>Vec3 mSuspensionForcePoint { 0, 0, 0 }</c>
/// </para>
/// </summary>
public float3 GetSuspensionForcePoint() => Jolt.PInvoke.WheelSettings_GetSuspensionForcePoint(this);
/// <summary>
/// <para>
/// Where tire forces (suspension and traction) are applied, in local space of the body. A good default is
/// the center of the wheel in its neutral pose. See mEnableSuspensionForcePoint.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L30">Jolt/Physics/Vehicle/Wheel.h:30</see>
/// <br/>
/// <c>Vec3 mSuspensionForcePoint { 0, 0, 0 }</c>
/// </para>
/// </summary>
public void SetSuspensionForcePoint(float3 value) => Jolt.PInvoke.WheelSettings_SetSuspensionForcePoint(this, value);
/// <summary>
/// <para>
/// Direction of the suspension in local space of the body, should point down
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L31">Jolt/Physics/Vehicle/Wheel.h:31</see>
/// <br/>
/// <c>Vec3 mSuspensionDirection { 0, -1, 0 }</c>
/// </para>
/// </summary>
public float3 GetSuspensionDirection() => Jolt.PInvoke.WheelSettings_GetSuspensionDirection(this);
/// <summary>
/// <para>
/// Direction of the suspension in local space of the body, should point down
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L31">Jolt/Physics/Vehicle/Wheel.h:31</see>
/// <br/>
/// <c>Vec3 mSuspensionDirection { 0, -1, 0 }</c>
/// </para>
/// </summary>
public void SetSuspensionDirection(float3 value) => Jolt.PInvoke.WheelSettings_SetSuspensionDirection(this, value);
/// <summary>
/// <para>
/// Direction of the steering axis in local space of the body, should point up (e.g. for a bike would be
/// -mSuspensionDirection)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L32">Jolt/Physics/Vehicle/Wheel.h:32</see>
/// <br/>
/// <c>Vec3 mSteeringAxis { 0, 1, 0 }</c>
/// </para>
/// </summary>
public float3 GetSteeringAxis() => Jolt.PInvoke.WheelSettings_GetSteeringAxis(this);
/// <summary>
/// <para>
/// Direction of the steering axis in local space of the body, should point up (e.g. for a bike would be
/// -mSuspensionDirection)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L32">Jolt/Physics/Vehicle/Wheel.h:32</see>
/// <br/>
/// <c>Vec3 mSteeringAxis { 0, 1, 0 }</c>
/// </para>
/// </summary>
public void SetSteeringAxis(float3 value) => Jolt.PInvoke.WheelSettings_SetSteeringAxis(this, value);
/// <summary>
/// <para>
/// Up direction when the wheel is in the neutral steering position (usually VehicleConstraintSettings::mUp
/// but can be used to give the wheel camber or for a bike would be -mSuspensionDirection)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L33">Jolt/Physics/Vehicle/Wheel.h:33</see>
/// <br/>
/// <c>Vec3 mWheelUp { 0, 1, 0 }</c>
/// </para>
/// </summary>
public float3 GetWheelUp() => Jolt.PInvoke.WheelSettings_GetWheelUp(this);
/// <summary>
/// <para>
/// Up direction when the wheel is in the neutral steering position (usually VehicleConstraintSettings::mUp
/// but can be used to give the wheel camber or for a bike would be -mSuspensionDirection)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L33">Jolt/Physics/Vehicle/Wheel.h:33</see>
/// <br/>
/// <c>Vec3 mWheelUp { 0, 1, 0 }</c>
/// </para>
/// </summary>
public void SetWheelUp(float3 value) => Jolt.PInvoke.WheelSettings_SetWheelUp(this, value);
/// <summary>
/// <para>
/// Forward direction when the wheel is in the neutral steering position (usually
/// VehicleConstraintSettings::mForward but can be used to give the wheel toe, does not need to be
/// perpendicular to mWheelUp)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L34">Jolt/Physics/Vehicle/Wheel.h:34</see>
/// <br/>
/// <c>Vec3 mWheelForward { 0, 0, 1 }</c>
/// </para>
/// </summary>
public float3 GetWheelForward() => Jolt.PInvoke.WheelSettings_GetWheelForward(this);
/// <summary>
/// <para>
/// Forward direction when the wheel is in the neutral steering position (usually
/// VehicleConstraintSettings::mForward but can be used to give the wheel toe, does not need to be
/// perpendicular to mWheelUp)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L34">Jolt/Physics/Vehicle/Wheel.h:34</see>
/// <br/>
/// <c>Vec3 mWheelForward { 0, 0, 1 }</c>
/// </para>
/// </summary>
public void SetWheelForward(float3 value) => Jolt.PInvoke.WheelSettings_SetWheelForward(this, value);
/// <summary>
/// <para>
/// How long the suspension is in max raised position relative to the attachment point (m)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L35">Jolt/Physics/Vehicle/Wheel.h:35</see>
/// <br/>
/// <c>float mSuspensionMinLength = 0.3f</c>
/// </para>
/// </summary>
public float GetSuspensionMinLength() => Jolt.PInvoke.WheelSettings_GetSuspensionMinLength(this);
/// <summary>
/// <para>
/// How long the suspension is in max raised position relative to the attachment point (m)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L35">Jolt/Physics/Vehicle/Wheel.h:35</see>
/// <br/>
/// <c>float mSuspensionMinLength = 0.3f</c>
/// </para>
/// </summary>
public void SetSuspensionMinLength(float value) => Jolt.PInvoke.WheelSettings_SetSuspensionMinLength(this, value);
/// <summary>
/// <para>
/// How long the suspension is in max droop position relative to the attachment point (m)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L36">Jolt/Physics/Vehicle/Wheel.h:36</see>
/// <br/>
/// <c>float mSuspensionMaxLength = 0.5f</c>
/// </para>
/// </summary>
public float GetSuspensionMaxLength() => Jolt.PInvoke.WheelSettings_GetSuspensionMaxLength(this);
/// <summary>
/// <para>
/// How long the suspension is in max droop position relative to the attachment point (m)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L36">Jolt/Physics/Vehicle/Wheel.h:36</see>
/// <br/>
/// <c>float mSuspensionMaxLength = 0.5f</c>
/// </para>
/// </summary>
public void SetSuspensionMaxLength(float value) => Jolt.PInvoke.WheelSettings_SetSuspensionMaxLength(this, value);
/// <summary>
/// <para>
/// The natural length (m) of the suspension spring is defined as mSuspensionMaxLength +
/// mSuspensionPreloadLength. Can be used to preload the suspension as the spring is compressed by
/// mSuspensionPreloadLength when the suspension is in max droop position. Note that this means when the
/// vehicle touches the ground there is a discontinuity so it will also make the vehicle more bouncy as
/// we're updating with discrete time steps.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L37">Jolt/Physics/Vehicle/Wheel.h:37</see>
/// <br/>
/// <c>float mSuspensionPreloadLength = 0.0f</c>
/// </para>
/// </summary>
public float GetSuspensionPreloadLength() => Jolt.PInvoke.WheelSettings_GetSuspensionPreloadLength(this);
/// <summary>
/// <para>
/// The natural length (m) of the suspension spring is defined as mSuspensionMaxLength +
/// mSuspensionPreloadLength. Can be used to preload the suspension as the spring is compressed by
/// mSuspensionPreloadLength when the suspension is in max droop position. Note that this means when the
/// vehicle touches the ground there is a discontinuity so it will also make the vehicle more bouncy as
/// we're updating with discrete time steps.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L37">Jolt/Physics/Vehicle/Wheel.h:37</see>
/// <br/>
/// <c>float mSuspensionPreloadLength = 0.0f</c>
/// </para>
/// </summary>
public void SetSuspensionPreloadLength(float value) => Jolt.PInvoke.WheelSettings_SetSuspensionPreloadLength(this, value);
/// <summary>
/// <para>
/// Radius of the wheel (m)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L39">Jolt/Physics/Vehicle/Wheel.h:39</see>
/// <br/>
/// <c>float mRadius = 0.3f</c>
/// </para>
/// </summary>
public float GetRadius() => Jolt.PInvoke.WheelSettings_GetRadius(this);
/// <summary>
/// <para>
/// Radius of the wheel (m)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L39">Jolt/Physics/Vehicle/Wheel.h:39</see>
/// <br/>
/// <c>float mRadius = 0.3f</c>
/// </para>
/// </summary>
public void SetRadius(float value) => Jolt.PInvoke.WheelSettings_SetRadius(this, value);
/// <summary>
/// <para>
/// Width of the wheel (m)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L40">Jolt/Physics/Vehicle/Wheel.h:40</see>
/// <br/>
/// <c>float mWidth = 0.1f</c>
/// </para>
/// </summary>
public float GetWidth() => Jolt.PInvoke.WheelSettings_GetWidth(this);
/// <summary>
/// <para>
/// Width of the wheel (m)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L40">Jolt/Physics/Vehicle/Wheel.h:40</see>
/// <br/>
/// <c>float mWidth = 0.1f</c>
/// </para>
/// </summary>
public void SetWidth(float value) => Jolt.PInvoke.WheelSettings_SetWidth(this, value);
/// <summary>
/// <para>
/// Enables mSuspensionForcePoint, if disabled, the forces are applied at the collision contact point. This
/// leads to a more accurate simulation when interacting with dynamic objects but makes the vehicle less
/// stable. When setting this to true, all forces will be applied to a fixed point on the vehicle body.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L41">Jolt/Physics/Vehicle/Wheel.h:41</see>
/// <br/>
/// <c>bool mEnableSuspensionForcePoint = false</c>
/// </para>
/// </summary>
public bool GetEnableSuspensionForcePoint() => Jolt.PInvoke.WheelSettings_GetEnableSuspensionForcePoint(this);
/// <summary>
/// <para>
/// Enables mSuspensionForcePoint, if disabled, the forces are applied at the collision contact point. This
/// leads to a more accurate simulation when interacting with dynamic objects but makes the vehicle less
/// stable. When setting this to true, all forces will be applied to a fixed point on the vehicle body.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/Wheel.h#L41">Jolt/Physics/Vehicle/Wheel.h:41</see>
/// <br/>
/// <c>bool mEnableSuspensionForcePoint = false</c>
/// </para>
/// </summary>
public void SetEnableSuspensionForcePoint(bool value) => Jolt.PInvoke.WheelSettings_SetEnableSuspensionForcePoint(this, value);
public void AddRef() => Jolt.PInvoke.WheelSettings_AddRef(this);
public void Release() => Jolt.PInvoke.WheelSettings_Release(this);
public uint GetRefCount() => Jolt.PInvoke.WheelSettings_GetRefCount(this);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}