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

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