mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
370 lines
18 KiB
C#
370 lines
18 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>
|
|
/// WheelSettings object specifically for WheeledVehicleController
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L19">Jolt/Physics/Vehicle/WheeledVehicleController.h:19</see>
|
|
/// <br/>
|
|
/// <c>class WheelSettingsWV : public WheelSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct WheelSettingsWV : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L25">Jolt/Physics/Vehicle/WheeledVehicleController.h:25</see>
|
|
/// <br/>
|
|
/// <c>WheelSettingsWV()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static WheelSettingsWV Create() => Jolt.PInvoke.WheelSettingsWV_Create();
|
|
|
|
/// <inheritdoc cref="WheelSettings.GetRTTI()"/>
|
|
public RTTI GetRTTI() => ((WheelSettings)this).GetRTTI();
|
|
|
|
/// <inheritdoc cref="WheelSettings.CastTo(RTTI)"/>
|
|
public unsafe Ptr CastTo(RTTI rtti) => ((WheelSettings)this).CastTo(rtti);
|
|
|
|
/// <inheritdoc cref="WheelSettings.SaveBinaryState(StreamOut)"/>
|
|
public void SaveBinaryState(StreamOut stream) => ((WheelSettings)this).SaveBinaryState(stream);
|
|
|
|
/// <inheritdoc cref="WheelSettings.RestoreBinaryState(StreamIn)"/>
|
|
public void RestoreBinaryState(StreamIn stream) => ((WheelSettings)this).RestoreBinaryState(stream);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Moment of inertia (kg m^2), for a cylinder this would be 0.5 * M * R^2 which is 0.9 for a wheel with a
|
|
/// mass of 20 kg and radius 0.3 m
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L31">Jolt/Physics/Vehicle/WheeledVehicleController.h:31</see>
|
|
/// <br/>
|
|
/// <c>float mInertia = 0.9f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetInertia() => Jolt.PInvoke.WheelSettingsWV_GetInertia(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Moment of inertia (kg m^2), for a cylinder this would be 0.5 * M * R^2 which is 0.9 for a wheel with a
|
|
/// mass of 20 kg and radius 0.3 m
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L31">Jolt/Physics/Vehicle/WheeledVehicleController.h:31</see>
|
|
/// <br/>
|
|
/// <c>float mInertia = 0.9f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetInertia(float value) => Jolt.PInvoke.WheelSettingsWV_SetInertia(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Angular damping factor of the wheel: dw/dt = -c * w. Value should be zero or positive and is usually
|
|
/// close to 0.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L32">Jolt/Physics/Vehicle/WheeledVehicleController.h:32</see>
|
|
/// <br/>
|
|
/// <c>float mAngularDamping = 0.2f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetAngularDamping() => Jolt.PInvoke.WheelSettingsWV_GetAngularDamping(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Angular damping factor of the wheel: dw/dt = -c * w. Value should be zero or positive and is usually
|
|
/// close to 0.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L32">Jolt/Physics/Vehicle/WheeledVehicleController.h:32</see>
|
|
/// <br/>
|
|
/// <c>float mAngularDamping = 0.2f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetAngularDamping(float value) => Jolt.PInvoke.WheelSettingsWV_SetAngularDamping(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// How much this wheel can steer (radians)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L33">Jolt/Physics/Vehicle/WheeledVehicleController.h:33</see>
|
|
/// <br/>
|
|
/// <c>float mMaxSteerAngle = DegreesToRadians(70.0f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMaxSteerAngle() => Jolt.PInvoke.WheelSettingsWV_GetMaxSteerAngle(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// How much this wheel can steer (radians)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L33">Jolt/Physics/Vehicle/WheeledVehicleController.h:33</see>
|
|
/// <br/>
|
|
/// <c>float mMaxSteerAngle = DegreesToRadians(70.0f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxSteerAngle(float value) => Jolt.PInvoke.WheelSettingsWV_SetMaxSteerAngle(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// On the Y-axis: friction in the forward direction of the tire. Friction is normally between 0 (no
|
|
/// friction) and 1 (full friction) although friction can be a little bit higher than 1 because of the
|
|
/// profile of a tire. On the X-axis: the slip ratio (fraction) defined as (omega_wheel * r_wheel -
|
|
/// v_longitudinal) / |v_longitudinal|. You can see slip ratio as the amount the wheel is spinning relative
|
|
/// to the floor: 0 means the wheel has full traction and is rolling perfectly in sync with the ground, 1 is
|
|
/// for example when the wheel is locked and sliding over the ground.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L34">Jolt/Physics/Vehicle/WheeledVehicleController.h:34</see>
|
|
/// <br/>
|
|
/// <c>LinearCurve mLongitudinalFriction</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is an owned copy; Dispose it when you're done with it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public LinearCurve GetLongitudinalFriction() => Jolt.PInvoke.WheelSettingsWV_GetLongitudinalFriction(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// On the Y-axis: friction in the forward direction of the tire. Friction is normally between 0 (no
|
|
/// friction) and 1 (full friction) although friction can be a little bit higher than 1 because of the
|
|
/// profile of a tire. On the X-axis: the slip ratio (fraction) defined as (omega_wheel * r_wheel -
|
|
/// v_longitudinal) / |v_longitudinal|. You can see slip ratio as the amount the wheel is spinning relative
|
|
/// to the floor: 0 means the wheel has full traction and is rolling perfectly in sync with the ground, 1 is
|
|
/// for example when the wheel is locked and sliding over the ground.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L34">Jolt/Physics/Vehicle/WheeledVehicleController.h:34</see>
|
|
/// <br/>
|
|
/// <c>LinearCurve mLongitudinalFriction</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The value is copied into the field; the handle you pass stays yours to Dispose.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetLongitudinalFriction(LinearCurve value) =>
|
|
Jolt.PInvoke.WheelSettingsWV_SetLongitudinalFriction(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// On the Y-axis: friction in the sideways direction of the tire. Friction is normally between 0 (no
|
|
/// friction) and 1 (full friction) although friction can be a little bit higher than 1 because of the
|
|
/// profile of a tire. On the X-axis: the slip angle (degrees) defined as angle between relative contact
|
|
/// velocity and tire direction.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L35">Jolt/Physics/Vehicle/WheeledVehicleController.h:35</see>
|
|
/// <br/>
|
|
/// <c>LinearCurve mLateralFriction</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is an owned copy; Dispose it when you're done with it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public LinearCurve GetLateralFriction() => Jolt.PInvoke.WheelSettingsWV_GetLateralFriction(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// On the Y-axis: friction in the sideways direction of the tire. Friction is normally between 0 (no
|
|
/// friction) and 1 (full friction) although friction can be a little bit higher than 1 because of the
|
|
/// profile of a tire. On the X-axis: the slip angle (degrees) defined as angle between relative contact
|
|
/// velocity and tire direction.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L35">Jolt/Physics/Vehicle/WheeledVehicleController.h:35</see>
|
|
/// <br/>
|
|
/// <c>LinearCurve mLateralFriction</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The value is copied into the field; the handle you pass stays yours to Dispose.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetLateralFriction(LinearCurve value) =>
|
|
Jolt.PInvoke.WheelSettingsWV_SetLateralFriction(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// How much torque (Nm) the brakes can apply to this wheel
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L36">Jolt/Physics/Vehicle/WheeledVehicleController.h:36</see>
|
|
/// <br/>
|
|
/// <c>float mMaxBrakeTorque = 1500.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMaxBrakeTorque() => Jolt.PInvoke.WheelSettingsWV_GetMaxBrakeTorque(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// How much torque (Nm) the brakes can apply to this wheel
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L36">Jolt/Physics/Vehicle/WheeledVehicleController.h:36</see>
|
|
/// <br/>
|
|
/// <c>float mMaxBrakeTorque = 1500.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxBrakeTorque(float value) => Jolt.PInvoke.WheelSettingsWV_SetMaxBrakeTorque(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// How much torque (Nm) the hand brake can apply to this wheel (usually only applied to the rear wheels)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L37">Jolt/Physics/Vehicle/WheeledVehicleController.h:37</see>
|
|
/// <br/>
|
|
/// <c>float mMaxHandBrakeTorque = 4000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMaxHandBrakeTorque() => Jolt.PInvoke.WheelSettingsWV_GetMaxHandBrakeTorque(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// How much torque (Nm) the hand brake can apply to this wheel (usually only applied to the rear wheels)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L37">Jolt/Physics/Vehicle/WheeledVehicleController.h:37</see>
|
|
/// <br/>
|
|
/// <c>float mMaxHandBrakeTorque = 4000.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxHandBrakeTorque(float value) =>
|
|
Jolt.PInvoke.WheelSettingsWV_SetMaxHandBrakeTorque(this, value);
|
|
|
|
public void AddRef() => ((WheelSettings)this).AddRef();
|
|
|
|
public void Release() => ((WheelSettings)this).Release();
|
|
|
|
public uint GetRefCount() => ((WheelSettings)this).GetRefCount();
|
|
|
|
public static implicit operator WheelSettings(WheelSettingsWV value) =>
|
|
Unsafe.BitCast<WheelSettingsWV, WheelSettings>(value);
|
|
|
|
public void Dispose()
|
|
{
|
|
if (IsNull())
|
|
return;
|
|
Release();
|
|
}
|
|
|
|
/// <inheritdoc cref="WheelSettings.GetPosition()"/>
|
|
public float3 GetPosition() => ((WheelSettings)this).GetPosition();
|
|
|
|
/// <inheritdoc cref="WheelSettings.SetPosition(float3)"/>
|
|
public void SetPosition(float3 value) => ((WheelSettings)this).SetPosition(value);
|
|
|
|
/// <inheritdoc cref="WheelSettings.GetSuspensionForcePoint()"/>
|
|
public float3 GetSuspensionForcePoint() => ((WheelSettings)this).GetSuspensionForcePoint();
|
|
|
|
/// <inheritdoc cref="WheelSettings.SetSuspensionForcePoint(float3)"/>
|
|
public void SetSuspensionForcePoint(float3 value) => ((WheelSettings)this).SetSuspensionForcePoint(value);
|
|
|
|
/// <inheritdoc cref="WheelSettings.GetSuspensionDirection()"/>
|
|
public float3 GetSuspensionDirection() => ((WheelSettings)this).GetSuspensionDirection();
|
|
|
|
/// <inheritdoc cref="WheelSettings.SetSuspensionDirection(float3)"/>
|
|
public void SetSuspensionDirection(float3 value) => ((WheelSettings)this).SetSuspensionDirection(value);
|
|
|
|
/// <inheritdoc cref="WheelSettings.GetSteeringAxis()"/>
|
|
public float3 GetSteeringAxis() => ((WheelSettings)this).GetSteeringAxis();
|
|
|
|
/// <inheritdoc cref="WheelSettings.SetSteeringAxis(float3)"/>
|
|
public void SetSteeringAxis(float3 value) => ((WheelSettings)this).SetSteeringAxis(value);
|
|
|
|
/// <inheritdoc cref="WheelSettings.GetWheelUp()"/>
|
|
public float3 GetWheelUp() => ((WheelSettings)this).GetWheelUp();
|
|
|
|
/// <inheritdoc cref="WheelSettings.SetWheelUp(float3)"/>
|
|
public void SetWheelUp(float3 value) => ((WheelSettings)this).SetWheelUp(value);
|
|
|
|
/// <inheritdoc cref="WheelSettings.GetWheelForward()"/>
|
|
public float3 GetWheelForward() => ((WheelSettings)this).GetWheelForward();
|
|
|
|
/// <inheritdoc cref="WheelSettings.SetWheelForward(float3)"/>
|
|
public void SetWheelForward(float3 value) => ((WheelSettings)this).SetWheelForward(value);
|
|
|
|
/// <inheritdoc cref="WheelSettings.GetSuspensionMinLength()"/>
|
|
public float GetSuspensionMinLength() => ((WheelSettings)this).GetSuspensionMinLength();
|
|
|
|
/// <inheritdoc cref="WheelSettings.SetSuspensionMinLength(float)"/>
|
|
public void SetSuspensionMinLength(float value) => ((WheelSettings)this).SetSuspensionMinLength(value);
|
|
|
|
/// <inheritdoc cref="WheelSettings.GetSuspensionMaxLength()"/>
|
|
public float GetSuspensionMaxLength() => ((WheelSettings)this).GetSuspensionMaxLength();
|
|
|
|
/// <inheritdoc cref="WheelSettings.SetSuspensionMaxLength(float)"/>
|
|
public void SetSuspensionMaxLength(float value) => ((WheelSettings)this).SetSuspensionMaxLength(value);
|
|
|
|
/// <inheritdoc cref="WheelSettings.GetSuspensionPreloadLength()"/>
|
|
public float GetSuspensionPreloadLength() => ((WheelSettings)this).GetSuspensionPreloadLength();
|
|
|
|
/// <inheritdoc cref="WheelSettings.SetSuspensionPreloadLength(float)"/>
|
|
public void SetSuspensionPreloadLength(float value) => ((WheelSettings)this).SetSuspensionPreloadLength(value);
|
|
|
|
/// <inheritdoc cref="WheelSettings.GetSuspensionSpring()"/>
|
|
public SpringSettings GetSuspensionSpring() => ((WheelSettings)this).GetSuspensionSpring();
|
|
|
|
/// <inheritdoc cref="WheelSettings.SetSuspensionSpring(SpringSettings)"/>
|
|
public void SetSuspensionSpring(SpringSettings value) => ((WheelSettings)this).SetSuspensionSpring(value);
|
|
|
|
/// <inheritdoc cref="WheelSettings.GetRadius()"/>
|
|
public float GetRadius() => ((WheelSettings)this).GetRadius();
|
|
|
|
/// <inheritdoc cref="WheelSettings.SetRadius(float)"/>
|
|
public void SetRadius(float value) => ((WheelSettings)this).SetRadius(value);
|
|
|
|
/// <inheritdoc cref="WheelSettings.GetWidth()"/>
|
|
public float GetWidth() => ((WheelSettings)this).GetWidth();
|
|
|
|
/// <inheritdoc cref="WheelSettings.SetWidth(float)"/>
|
|
public void SetWidth(float value) => ((WheelSettings)this).SetWidth(value);
|
|
|
|
/// <inheritdoc cref="WheelSettings.GetEnableSuspensionForcePoint()"/>
|
|
public bool GetEnableSuspensionForcePoint() => ((WheelSettings)this).GetEnableSuspensionForcePoint();
|
|
|
|
/// <inheritdoc cref="WheelSettings.SetEnableSuspensionForcePoint(bool)"/>
|
|
public void SetEnableSuspensionForcePoint(bool value) =>
|
|
((WheelSettings)this).SetEnableSuspensionForcePoint(value);
|
|
}
|
|
}
|