mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 22:18:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
468
Brutal.Jolt/Generated/Classes/WheelSettings.gen.cs
Normal file
468
Brutal.Jolt/Generated/Classes/WheelSettings.gen.cs
Normal file
|
|
@ -0,0 +1,468 @@
|
|||
// <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>
|
||||
/// Base class for wheel settings, each VehicleController can implement a derived class of this
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L18">Jolt/Physics/Vehicle/Wheel.h:18</see>
|
||||
/// <br/>
|
||||
/// <c>class WheelSettings : public SerializableObject, public RefTarget<WheelSettings></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
||||
/// Saves the contents in binary form to inStream.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L24">Jolt/Physics/Vehicle/Wheel.h:24</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void SaveBinaryState(StreamOut &inStream) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.WheelSettings_SaveBinaryState(this, stream);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Restores the contents in binary form to inStream.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L27">Jolt/Physics/Vehicle/Wheel.h:27</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void RestoreBinaryState(StreamIn &inStream)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
||||
/// Settings for the suspension spring
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L38">Jolt/Physics/Vehicle/Wheel.h:38</see>
|
||||
/// <br/>
|
||||
/// <c>SpringSettings mSuspensionSpring { ESpringMode::FrequencyAndDamping, 1.5f, 0.5f }</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The returned handle is an owned copy; Dispose it when you're done with it.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public SpringSettings GetSuspensionSpring() => Jolt.PInvoke.WheelSettings_GetSuspensionSpring(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Settings for the suspension spring
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L38">Jolt/Physics/Vehicle/Wheel.h:38</see>
|
||||
/// <br/>
|
||||
/// <c>SpringSettings mSuspensionSpring { ESpringMode::FrequencyAndDamping, 1.5f, 0.5f }</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The value is copied into the field; the handle you pass stays yours to Dispose.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SetSuspensionSpring(SpringSettings value) =>
|
||||
Jolt.PInvoke.WheelSettings_SetSuspensionSpring(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Radius of the wheel (m)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue