mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
209 lines
11 KiB
C#
209 lines
11 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/WheeledVehicleController.h#L47">Jolt/Physics/Vehicle/WheeledVehicleController.h:47</see>
|
|
/// <br/>
|
|
/// <c>explicit WheelWV(const WheelSettingsWV &inWheel)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "WheelWV_Create")]
|
|
public static partial WheelWV WheelWV_Create(WheelSettingsWV wheel);
|
|
[LibraryImport("jolt", EntryPoint = "WheelWV_Destroy")]
|
|
public static partial void WheelWV_Destroy(WheelWV self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L50">Jolt/Physics/Vehicle/WheeledVehicleController.h:50</see>
|
|
/// <br/>
|
|
/// <c>const WheelSettingsWV * GetSettings() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Override GetSettings and cast to the correct class
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "WheelWV_GetSettings")]
|
|
public static partial WheelSettingsWV WheelWV_GetSettings(WheelWV self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L53">Jolt/Physics/Vehicle/WheeledVehicleController.h:53</see>
|
|
/// <br/>
|
|
/// <c>void ApplyTorque(float inTorque, float inDeltaTime)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Apply a torque (N m) to the wheel for a particular delta time
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "WheelWV_ApplyTorque")]
|
|
public static partial void WheelWV_ApplyTorque(WheelWV self, float torque, float deltaTime);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L59">Jolt/Physics/Vehicle/WheeledVehicleController.h:59</see>
|
|
/// <br/>
|
|
/// <c>void Update(uint inWheelIndex, float inDeltaTime, const VehicleConstraint &inConstraint)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Update the wheel rotation based on the current angular velocity
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "WheelWV_Update")]
|
|
public static partial void WheelWV_Update(WheelWV self, uint wheelIndex, float deltaTime, VehicleConstraint constraint);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Velocity difference between ground and wheel relative to ground velocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L61">Jolt/Physics/Vehicle/WheeledVehicleController.h:61</see>
|
|
/// <br/>
|
|
/// <c>float mLongitudinalSlip = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "WheelWV_GetLongitudinalSlip")]
|
|
public static partial float WheelWV_GetLongitudinalSlip(WheelWV self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Velocity difference between ground and wheel relative to ground velocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L61">Jolt/Physics/Vehicle/WheeledVehicleController.h:61</see>
|
|
/// <br/>
|
|
/// <c>float mLongitudinalSlip = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "WheelWV_SetLongitudinalSlip")]
|
|
public static partial void WheelWV_SetLongitudinalSlip(WheelWV self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Angular difference (in radians) between ground and wheel relative to ground velocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L62">Jolt/Physics/Vehicle/WheeledVehicleController.h:62</see>
|
|
/// <br/>
|
|
/// <c>float mLateralSlip = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "WheelWV_GetLateralSlip")]
|
|
public static partial float WheelWV_GetLateralSlip(WheelWV self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Angular difference (in radians) between ground and wheel relative to ground velocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L62">Jolt/Physics/Vehicle/WheeledVehicleController.h:62</see>
|
|
/// <br/>
|
|
/// <c>float mLateralSlip = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "WheelWV_SetLateralSlip")]
|
|
public static partial void WheelWV_SetLateralSlip(WheelWV self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Combined friction coefficient in longitudinal direction (combines terrain and tires)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L63">Jolt/Physics/Vehicle/WheeledVehicleController.h:63</see>
|
|
/// <br/>
|
|
/// <c>float mCombinedLongitudinalFriction = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "WheelWV_GetCombinedLongitudinalFriction")]
|
|
public static partial float WheelWV_GetCombinedLongitudinalFriction(WheelWV self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Combined friction coefficient in longitudinal direction (combines terrain and tires)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L63">Jolt/Physics/Vehicle/WheeledVehicleController.h:63</see>
|
|
/// <br/>
|
|
/// <c>float mCombinedLongitudinalFriction = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "WheelWV_SetCombinedLongitudinalFriction")]
|
|
public static partial void WheelWV_SetCombinedLongitudinalFriction(WheelWV self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Combined friction coefficient in lateral direction (combines terrain and tires)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L64">Jolt/Physics/Vehicle/WheeledVehicleController.h:64</see>
|
|
/// <br/>
|
|
/// <c>float mCombinedLateralFriction = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "WheelWV_GetCombinedLateralFriction")]
|
|
public static partial float WheelWV_GetCombinedLateralFriction(WheelWV self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Combined friction coefficient in lateral direction (combines terrain and tires)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L64">Jolt/Physics/Vehicle/WheeledVehicleController.h:64</see>
|
|
/// <br/>
|
|
/// <c>float mCombinedLateralFriction = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "WheelWV_SetCombinedLateralFriction")]
|
|
public static partial void WheelWV_SetCombinedLateralFriction(WheelWV self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Amount of impulse that the brakes can apply to the floor (excluding friction)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L65">Jolt/Physics/Vehicle/WheeledVehicleController.h:65</see>
|
|
/// <br/>
|
|
/// <c>float mBrakeImpulse = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "WheelWV_GetBrakeImpulse")]
|
|
public static partial float WheelWV_GetBrakeImpulse(WheelWV self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Amount of impulse that the brakes can apply to the floor (excluding friction)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/WheeledVehicleController.h#L65">Jolt/Physics/Vehicle/WheeledVehicleController.h:65</see>
|
|
/// <br/>
|
|
/// <c>float mBrakeImpulse = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "WheelWV_SetBrakeImpulse")]
|
|
public static partial void WheelWV_SetBrakeImpulse(WheelWV self, float value);
|
|
[LibraryImport("jolt", EntryPoint = "WheelWV_AsWheel")]
|
|
public static partial Wheel WheelWV_AsWheel(WheelWV self);
|
|
}
|
|
}
|
|
}
|