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
293
Brutal.Jolt/Generated/Classes/WheelWV.gen.cs
Normal file
293
Brutal.Jolt/Generated/Classes/WheelWV.gen.cs
Normal file
|
|
@ -0,0 +1,293 @@
|
|||
// <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>
|
||||
/// Wheel object specifically for WheeledVehicleController
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L41">Jolt/Physics/Vehicle/WheeledVehicleController.h:41</see>
|
||||
/// <br/>
|
||||
/// <c>class WheelWV : public Wheel</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct WheelWV : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Constructor
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L47">Jolt/Physics/Vehicle/WheeledVehicleController.h:47</see>
|
||||
/// <br/>
|
||||
/// <c>explicit WheelWV(const WheelSettingsWV &inWheel)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static WheelWV Create(WheelSettingsWV wheel) => Jolt.PInvoke.WheelWV_Create(wheel);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Override GetSettings and cast to the correct class
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L50">Jolt/Physics/Vehicle/WheeledVehicleController.h:50</see>
|
||||
/// <br/>
|
||||
/// <c>const WheelSettingsWV * GetSettings() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The returned handle carries its own reference; Dispose it once when you're done.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public WheelSettingsWV GetSettings() => Jolt.PInvoke.WheelWV_GetSettings(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Apply a torque (N m) to the wheel for a particular delta time
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L53">Jolt/Physics/Vehicle/WheeledVehicleController.h:53</see>
|
||||
/// <br/>
|
||||
/// <c>void ApplyTorque(float inTorque, float inDeltaTime)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void ApplyTorque(float torque, float deltaTime) =>
|
||||
Jolt.PInvoke.WheelWV_ApplyTorque(this, torque, deltaTime);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Update the wheel rotation based on the current angular velocity
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
||||
public void Update(uint wheelIndex, float deltaTime, VehicleConstraint constraint)
|
||||
{
|
||||
Jolt.PInvoke.WheelWV_Update(this, wheelIndex, deltaTime, constraint, out var _inRange);
|
||||
if (_inRange == 0)
|
||||
throw new ArgumentOutOfRangeException(
|
||||
nameof(wheelIndex),
|
||||
wheelIndex,
|
||||
"Expected an index below the number of wheels."
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Velocity difference between ground and wheel relative to ground velocity
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L61">Jolt/Physics/Vehicle/WheeledVehicleController.h:61</see>
|
||||
/// <br/>
|
||||
/// <c>float mLongitudinalSlip = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetLongitudinalSlip() => Jolt.PInvoke.WheelWV_GetLongitudinalSlip(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Velocity difference between ground and wheel relative to ground velocity
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L61">Jolt/Physics/Vehicle/WheeledVehicleController.h:61</see>
|
||||
/// <br/>
|
||||
/// <c>float mLongitudinalSlip = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetLongitudinalSlip(float value) => Jolt.PInvoke.WheelWV_SetLongitudinalSlip(this, 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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L62">Jolt/Physics/Vehicle/WheeledVehicleController.h:62</see>
|
||||
/// <br/>
|
||||
/// <c>float mLateralSlip = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetLateralSlip() => Jolt.PInvoke.WheelWV_GetLateralSlip(this);
|
||||
|
||||
/// <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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L62">Jolt/Physics/Vehicle/WheeledVehicleController.h:62</see>
|
||||
/// <br/>
|
||||
/// <c>float mLateralSlip = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetLateralSlip(float value) => Jolt.PInvoke.WheelWV_SetLateralSlip(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Combined friction coefficient in longitudinal direction (combines terrain and tires)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L63">Jolt/Physics/Vehicle/WheeledVehicleController.h:63</see>
|
||||
/// <br/>
|
||||
/// <c>float mCombinedLongitudinalFriction = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetCombinedLongitudinalFriction() => Jolt.PInvoke.WheelWV_GetCombinedLongitudinalFriction(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Combined friction coefficient in longitudinal direction (combines terrain and tires)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L63">Jolt/Physics/Vehicle/WheeledVehicleController.h:63</see>
|
||||
/// <br/>
|
||||
/// <c>float mCombinedLongitudinalFriction = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetCombinedLongitudinalFriction(float value) =>
|
||||
Jolt.PInvoke.WheelWV_SetCombinedLongitudinalFriction(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Combined friction coefficient in lateral direction (combines terrain and tires)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L64">Jolt/Physics/Vehicle/WheeledVehicleController.h:64</see>
|
||||
/// <br/>
|
||||
/// <c>float mCombinedLateralFriction = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetCombinedLateralFriction() => Jolt.PInvoke.WheelWV_GetCombinedLateralFriction(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Combined friction coefficient in lateral direction (combines terrain and tires)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L64">Jolt/Physics/Vehicle/WheeledVehicleController.h:64</see>
|
||||
/// <br/>
|
||||
/// <c>float mCombinedLateralFriction = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetCombinedLateralFriction(float value) =>
|
||||
Jolt.PInvoke.WheelWV_SetCombinedLateralFriction(this, 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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L65">Jolt/Physics/Vehicle/WheeledVehicleController.h:65</see>
|
||||
/// <br/>
|
||||
/// <c>float mBrakeImpulse = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetBrakeImpulse() => Jolt.PInvoke.WheelWV_GetBrakeImpulse(this);
|
||||
|
||||
/// <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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/WheeledVehicleController.h#L65">Jolt/Physics/Vehicle/WheeledVehicleController.h:65</see>
|
||||
/// <br/>
|
||||
/// <c>float mBrakeImpulse = 0.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetBrakeImpulse(float value) => Jolt.PInvoke.WheelWV_SetBrakeImpulse(this, value);
|
||||
|
||||
public static implicit operator Wheel(WheelWV value) => Unsafe.BitCast<WheelWV, Wheel>(value);
|
||||
|
||||
public void Dispose() => Jolt.PInvoke.WheelWV_Destroy(this);
|
||||
|
||||
/// <inheritdoc cref="Wheel.GetAngularVelocity()"/>
|
||||
public float GetAngularVelocity() => ((Wheel)this).GetAngularVelocity();
|
||||
|
||||
/// <inheritdoc cref="Wheel.SetAngularVelocity(float)"/>
|
||||
public void SetAngularVelocity(float vel) => ((Wheel)this).SetAngularVelocity(vel);
|
||||
|
||||
/// <inheritdoc cref="Wheel.GetRotationAngle()"/>
|
||||
public float GetRotationAngle() => ((Wheel)this).GetRotationAngle();
|
||||
|
||||
/// <inheritdoc cref="Wheel.SetRotationAngle(float)"/>
|
||||
public void SetRotationAngle(float angle) => ((Wheel)this).SetRotationAngle(angle);
|
||||
|
||||
/// <inheritdoc cref="Wheel.GetSteerAngle()"/>
|
||||
public float GetSteerAngle() => ((Wheel)this).GetSteerAngle();
|
||||
|
||||
/// <inheritdoc cref="Wheel.SetSteerAngle(float)"/>
|
||||
public void SetSteerAngle(float angle) => ((Wheel)this).SetSteerAngle(angle);
|
||||
|
||||
/// <inheritdoc cref="Wheel.HasContact()"/>
|
||||
public bool HasContact() => ((Wheel)this).HasContact();
|
||||
|
||||
/// <inheritdoc cref="Wheel.GetContactBodyID()"/>
|
||||
public uint GetContactBodyID() => ((Wheel)this).GetContactBodyID();
|
||||
|
||||
/// <inheritdoc cref="Wheel.GetContactSubShapeID()"/>
|
||||
public uint GetContactSubShapeID() => ((Wheel)this).GetContactSubShapeID();
|
||||
|
||||
/// <inheritdoc cref="Wheel.GetContactPosition()"/>
|
||||
public float3 GetContactPosition() => ((Wheel)this).GetContactPosition();
|
||||
|
||||
/// <inheritdoc cref="Wheel.GetContactPointVelocity()"/>
|
||||
public float3 GetContactPointVelocity() => ((Wheel)this).GetContactPointVelocity();
|
||||
|
||||
/// <inheritdoc cref="Wheel.GetContactNormal()"/>
|
||||
public float3 GetContactNormal() => ((Wheel)this).GetContactNormal();
|
||||
|
||||
/// <inheritdoc cref="Wheel.GetContactLongitudinal()"/>
|
||||
public float3 GetContactLongitudinal() => ((Wheel)this).GetContactLongitudinal();
|
||||
|
||||
/// <inheritdoc cref="Wheel.GetContactLateral()"/>
|
||||
public float3 GetContactLateral() => ((Wheel)this).GetContactLateral();
|
||||
|
||||
/// <inheritdoc cref="Wheel.GetSuspensionLength()"/>
|
||||
public float GetSuspensionLength() => ((Wheel)this).GetSuspensionLength();
|
||||
|
||||
/// <inheritdoc cref="Wheel.HasHitHardPoint()"/>
|
||||
public bool HasHitHardPoint() => ((Wheel)this).HasHitHardPoint();
|
||||
|
||||
/// <inheritdoc cref="Wheel.GetSuspensionLambda()"/>
|
||||
public float GetSuspensionLambda() => ((Wheel)this).GetSuspensionLambda();
|
||||
|
||||
/// <inheritdoc cref="Wheel.GetLongitudinalLambda()"/>
|
||||
public float GetLongitudinalLambda() => ((Wheel)this).GetLongitudinalLambda();
|
||||
|
||||
/// <inheritdoc cref="Wheel.GetLateralLambda()"/>
|
||||
public float GetLateralLambda() => ((Wheel)this).GetLateralLambda();
|
||||
|
||||
/// <inheritdoc cref="Wheel.SolveLongitudinalConstraintPart(VehicleConstraint, float, float)"/>
|
||||
public bool SolveLongitudinalConstraintPart(VehicleConstraint constraint, float minImpulse, float maxImpulse) =>
|
||||
((Wheel)this).SolveLongitudinalConstraintPart(constraint, minImpulse, maxImpulse);
|
||||
|
||||
/// <inheritdoc cref="Wheel.SolveLateralConstraintPart(VehicleConstraint, float, float)"/>
|
||||
public bool SolveLateralConstraintPart(VehicleConstraint constraint, float minImpulse, float maxImpulse) =>
|
||||
((Wheel)this).SolveLateralConstraintPart(constraint, minImpulse, maxImpulse);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue