brutal/Brutal.Jolt/Generated/Classes/Wheel.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

325 lines
14 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>
/// Base class for runtime data for a wheel, 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#L45">Jolt/Physics/Vehicle/Wheel.h:45</see>
/// <br/>
/// <c>class Wheel : public NonCopyable</c>
/// </para>
/// </summary>
[InteropHandle]
public readonly partial struct Wheel
{
/// <summary>
/// <para>
/// Get settings for the wheel
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L55">Jolt/Physics/Vehicle/Wheel.h:55</see>
/// <br/>
/// <c>const WheelSettings * GetSettings() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The returned handle carries its own reference; Dispose it once when you're done.
/// </para>
/// </remarks>
public WheelSettings GetSettings() => Jolt.PInvoke.Wheel_GetSettings(this);
/// <summary>
/// <para>
/// Get the angular velocity (rad/s) for this wheel, note that positive means the wheel is rotating such
/// that the car moves forward
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L58">Jolt/Physics/Vehicle/Wheel.h:58</see>
/// <br/>
/// <c>float GetAngularVelocity() const</c>
/// </para>
/// </summary>
public float GetAngularVelocity() => Jolt.PInvoke.Wheel_GetAngularVelocity(this);
/// <summary>
/// <para>
/// Update the angular velocity (rad/s)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L61">Jolt/Physics/Vehicle/Wheel.h:61</see>
/// <br/>
/// <c>void SetAngularVelocity(float inVel)</c>
/// </para>
/// </summary>
public void SetAngularVelocity(float vel) => Jolt.PInvoke.Wheel_SetAngularVelocity(this, vel);
/// <summary>
/// <para>
/// Get the current rotation angle of the wheel in radians [0, 2 pi]
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L64">Jolt/Physics/Vehicle/Wheel.h:64</see>
/// <br/>
/// <c>float GetRotationAngle() const</c>
/// </para>
/// </summary>
public float GetRotationAngle() => Jolt.PInvoke.Wheel_GetRotationAngle(this);
/// <summary>
/// <para>
/// Set the current rotation angle of the wheel in radians [0, 2 pi]
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L67">Jolt/Physics/Vehicle/Wheel.h:67</see>
/// <br/>
/// <c>void SetRotationAngle(float inAngle)</c>
/// </para>
/// </summary>
public void SetRotationAngle(float angle) => Jolt.PInvoke.Wheel_SetRotationAngle(this, angle);
/// <summary>
/// <para>
/// Get the current steer angle of the wheel in radians [-pi, pi], positive is to the left
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L70">Jolt/Physics/Vehicle/Wheel.h:70</see>
/// <br/>
/// <c>float GetSteerAngle() const</c>
/// </para>
/// </summary>
public float GetSteerAngle() => Jolt.PInvoke.Wheel_GetSteerAngle(this);
/// <summary>
/// <para>
/// Set the current steer angle of the wheel in radians [-pi, pi]
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L73">Jolt/Physics/Vehicle/Wheel.h:73</see>
/// <br/>
/// <c>void SetSteerAngle(float inAngle)</c>
/// </para>
/// </summary>
public void SetSteerAngle(float angle) => Jolt.PInvoke.Wheel_SetSteerAngle(this, angle);
/// <summary>
/// <para>
/// Returns true if the wheel is touching an object
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L76">Jolt/Physics/Vehicle/Wheel.h:76</see>
/// <br/>
/// <c>inline bool HasContact() const</c>
/// </para>
/// </summary>
public bool HasContact() => Jolt.PInvoke.Wheel_HasContact(this);
/// <summary>
/// <para>
/// Returns the body ID of the body that this wheel is touching
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L79">Jolt/Physics/Vehicle/Wheel.h:79</see>
/// <br/>
/// <c>BodyID GetContactBodyID() const</c>
/// </para>
/// </summary>
public uint GetContactBodyID() => Jolt.PInvoke.Wheel_GetContactBodyID(this);
/// <summary>
/// <para>
/// Returns the sub shape ID where we're contacting the body
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L82">Jolt/Physics/Vehicle/Wheel.h:82</see>
/// <br/>
/// <c>SubShapeID GetContactSubShapeID() const</c>
/// </para>
/// </summary>
public uint GetContactSubShapeID() => Jolt.PInvoke.Wheel_GetContactSubShapeID(this);
/// <summary>
/// <para>
/// Returns the current contact position in world space (note by the time you call this the vehicle has
/// moved)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L85">Jolt/Physics/Vehicle/Wheel.h:85</see>
/// <br/>
/// <c>RVec3 GetContactPosition() const</c>
/// </para>
/// </summary>
public float3 GetContactPosition() => Jolt.PInvoke.Wheel_GetContactPosition(this);
/// <summary>
/// <para>
/// Velocity of the contact point (m / s, not relative to the wheel but in world space)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L88">Jolt/Physics/Vehicle/Wheel.h:88</see>
/// <br/>
/// <c>Vec3 GetContactPointVelocity() const</c>
/// </para>
/// </summary>
public float3 GetContactPointVelocity() => Jolt.PInvoke.Wheel_GetContactPointVelocity(this);
/// <summary>
/// <para>
/// Returns the current contact normal in world space (note by the time you call this the vehicle has moved)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L91">Jolt/Physics/Vehicle/Wheel.h:91</see>
/// <br/>
/// <c>Vec3 GetContactNormal() const</c>
/// </para>
/// </summary>
public float3 GetContactNormal() => Jolt.PInvoke.Wheel_GetContactNormal(this);
/// <summary>
/// <para>
/// Returns longitudinal direction (direction along the wheel relative to floor) in world space (note by the
/// time you call this the vehicle has moved)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L94">Jolt/Physics/Vehicle/Wheel.h:94</see>
/// <br/>
/// <c>Vec3 GetContactLongitudinal() const</c>
/// </para>
/// </summary>
public float3 GetContactLongitudinal() => Jolt.PInvoke.Wheel_GetContactLongitudinal(this);
/// <summary>
/// <para>
/// Returns lateral direction (sideways direction) in world space (note by the time you call this the
/// vehicle has moved)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L97">Jolt/Physics/Vehicle/Wheel.h:97</see>
/// <br/>
/// <c>Vec3 GetContactLateral() const</c>
/// </para>
/// </summary>
public float3 GetContactLateral() => Jolt.PInvoke.Wheel_GetContactLateral(this);
/// <summary>
/// <para>
/// Get the length of the suspension for a wheel (m) relative to the suspension attachment point (hard
/// point)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L100">Jolt/Physics/Vehicle/Wheel.h:100</see>
/// <br/>
/// <c>float GetSuspensionLength() const</c>
/// </para>
/// </summary>
public float GetSuspensionLength() => Jolt.PInvoke.Wheel_GetSuspensionLength(this);
/// <summary>
/// <para>
/// Check if the suspension hit its upper limit
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L103">Jolt/Physics/Vehicle/Wheel.h:103</see>
/// <br/>
/// <c>bool HasHitHardPoint() const</c>
/// </para>
/// </summary>
public bool HasHitHardPoint() => Jolt.PInvoke.Wheel_HasHitHardPoint(this);
/// <summary>
/// <para>
/// Get the total impulse (N s) that was applied by the suspension
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L106">Jolt/Physics/Vehicle/Wheel.h:106</see>
/// <br/>
/// <c>float GetSuspensionLambda() const</c>
/// </para>
/// </summary>
public float GetSuspensionLambda() => Jolt.PInvoke.Wheel_GetSuspensionLambda(this);
/// <summary>
/// <para>
/// Get total impulse (N s) applied along the forward direction of the wheel
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L109">Jolt/Physics/Vehicle/Wheel.h:109</see>
/// <br/>
/// <c>float GetLongitudinalLambda() const</c>
/// </para>
/// </summary>
public float GetLongitudinalLambda() => Jolt.PInvoke.Wheel_GetLongitudinalLambda(this);
/// <summary>
/// <para>
/// Get total impulse (N s) applied along the sideways direction of the wheel
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L112">Jolt/Physics/Vehicle/Wheel.h:112</see>
/// <br/>
/// <c>float GetLateralLambda() const</c>
/// </para>
/// </summary>
public float GetLateralLambda() => Jolt.PInvoke.Wheel_GetLateralLambda(this);
/// <summary>
/// <para>
/// Internal function that should only be called by the controller. Used to apply impulses in the forward
/// direction of the vehicle.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L115">Jolt/Physics/Vehicle/Wheel.h:115</see>
/// <br/>
/// <c>bool SolveLongitudinalConstraintPart(const VehicleConstraint &amp;inConstraint, float inMinImpulse, float inMaxImpulse)</c>
/// </para>
/// </summary>
public bool SolveLongitudinalConstraintPart(VehicleConstraint constraint, float minImpulse, float maxImpulse) =>
Jolt.PInvoke.Wheel_SolveLongitudinalConstraintPart(this, constraint, minImpulse, maxImpulse);
/// <summary>
/// <para>
/// Internal function that should only be called by the controller. Used to apply impulses in the sideways
/// direction of the vehicle.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/Wheel.h#L118">Jolt/Physics/Vehicle/Wheel.h:118</see>
/// <br/>
/// <c>bool SolveLateralConstraintPart(const VehicleConstraint &amp;inConstraint, float inMinImpulse, float inMaxImpulse)</c>
/// </para>
/// </summary>
public bool SolveLateralConstraintPart(VehicleConstraint constraint, float minImpulse, float maxImpulse) =>
Jolt.PInvoke.Wheel_SolveLateralConstraintPart(this, constraint, minImpulse, maxImpulse);
}
}