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

176 lines
8.8 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/VehicleConstraint.h#L23">Jolt/Physics/Vehicle/VehicleConstraint.h:23</see>
/// <br/>
/// <c>class VehicleConstraintSettings : public ConstraintSettings</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Configuration for constraint that simulates a wheeled vehicle.
///
/// The properties in this constraint are largely based on "Car Physics for Games" by Marco Monster.
/// See: https://www.asawicki.info/Mirror/Car%20Physics%20for%20Games/Car%20Physics%20for%20Games.html
/// </code>
/// </remarks>
[InteropHandle]
public readonly partial struct VehicleConstraintSettings : IDisposable
{
public static VehicleConstraintSettings Create() => Jolt.PInvoke.VehicleConstraintSettings_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleConstraint.h#L25">Jolt/Physics/Vehicle/VehicleConstraint.h:25</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.VehicleConstraintSettings_GetRTTI(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleConstraint.h#L25">Jolt/Physics/Vehicle/VehicleConstraint.h:25</see>
/// <br/>
/// <c></c>
/// </para>
/// </summary>
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.VehicleConstraintSettings_CastTo(this, rTTI);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleConstraint.h#L29">Jolt/Physics/Vehicle/VehicleConstraint.h:29</see>
/// <br/>
/// <c>virtual void SaveBinaryState(StreamOut &amp;inStream) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Saves the contents of the constraint settings in binary form to inStream.
/// </para>
/// </remarks>
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.VehicleConstraintSettings_SaveBinaryState(this, stream);
/// <summary>
/// <para>
/// Vector indicating the up direction of the vehicle (in local space to the body)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleConstraint.h#L31">Jolt/Physics/Vehicle/VehicleConstraint.h:31</see>
/// <br/>
/// <c>Vec3 mUp { 0, 1, 0 }</c>
/// </para>
/// </summary>
public float3 GetUp() => Jolt.PInvoke.VehicleConstraintSettings_GetUp(this);
/// <summary>
/// <para>
/// Vector indicating the up direction of the vehicle (in local space to the body)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleConstraint.h#L31">Jolt/Physics/Vehicle/VehicleConstraint.h:31</see>
/// <br/>
/// <c>Vec3 mUp { 0, 1, 0 }</c>
/// </para>
/// </summary>
public void SetUp(float3 value) => Jolt.PInvoke.VehicleConstraintSettings_SetUp(this, value);
/// <summary>
/// <para>
/// Vector indicating forward direction of the vehicle (in local space to the body)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleConstraint.h#L32">Jolt/Physics/Vehicle/VehicleConstraint.h:32</see>
/// <br/>
/// <c>Vec3 mForward { 0, 0, 1 }</c>
/// </para>
/// </summary>
public float3 GetForward() => Jolt.PInvoke.VehicleConstraintSettings_GetForward(this);
/// <summary>
/// <para>
/// Vector indicating forward direction of the vehicle (in local space to the body)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleConstraint.h#L32">Jolt/Physics/Vehicle/VehicleConstraint.h:32</see>
/// <br/>
/// <c>Vec3 mForward { 0, 0, 1 }</c>
/// </para>
/// </summary>
public void SetForward(float3 value) => Jolt.PInvoke.VehicleConstraintSettings_SetForward(this, value);
/// <summary>
/// <para>
/// Defines the maximum pitch/roll angle (rad), can be used to avoid the car from getting upside down. The
/// vehicle up direction will stay within a cone centered around the up axis with half top angle
/// mMaxPitchRollAngle, set to pi to turn off.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleConstraint.h#L33">Jolt/Physics/Vehicle/VehicleConstraint.h:33</see>
/// <br/>
/// <c>float mMaxPitchRollAngle = JPH_PI</c>
/// </para>
/// </summary>
public float GetMaxPitchRollAngle() => Jolt.PInvoke.VehicleConstraintSettings_GetMaxPitchRollAngle(this);
/// <summary>
/// <para>
/// Defines the maximum pitch/roll angle (rad), can be used to avoid the car from getting upside down. The
/// vehicle up direction will stay within a cone centered around the up axis with half top angle
/// mMaxPitchRollAngle, set to pi to turn off.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleConstraint.h#L33">Jolt/Physics/Vehicle/VehicleConstraint.h:33</see>
/// <br/>
/// <c>float mMaxPitchRollAngle = JPH_PI</c>
/// </para>
/// </summary>
public void SetMaxPitchRollAngle(float value) => Jolt.PInvoke.VehicleConstraintSettings_SetMaxPitchRollAngle(this, value);
/// <summary>
/// <para>
/// Defines how the vehicle can accelerate / decelerate
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleConstraint.h#L36">Jolt/Physics/Vehicle/VehicleConstraint.h:36</see>
/// <br/>
/// <c>Ref&lt;VehicleControllerSettings&gt; mController</c>
/// </para>
/// </summary>
public VehicleControllerSettings GetController() => Jolt.PInvoke.VehicleConstraintSettings_GetController(this);
/// <summary>
/// <para>
/// Defines how the vehicle can accelerate / decelerate
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleConstraint.h#L36">Jolt/Physics/Vehicle/VehicleConstraint.h:36</see>
/// <br/>
/// <c>Ref&lt;VehicleControllerSettings&gt; mController</c>
/// </para>
/// </summary>
public void SetController(VehicleControllerSettings value) => Jolt.PInvoke.VehicleConstraintSettings_SetController(this, value);
public void AddRef() => Jolt.PInvoke.VehicleConstraintSettings_AddRef(this);
public void Release() => Jolt.PInvoke.VehicleConstraintSettings_Release(this);
public uint GetRefCount() => Jolt.PInvoke.VehicleConstraintSettings_GetRefCount(this);
public static implicit operator ConstraintSettings(VehicleConstraintSettings value) => Jolt.PInvoke.VehicleConstraintSettings_AsConstraintSettings(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}