mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
88 lines
3.8 KiB
C#
88 lines
3.8 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>
|
|
/// Runtime data for interface that controls acceleration / deceleration of the vehicle
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleController.h#L40">Jolt/Physics/Vehicle/VehicleController.h:40</see>
|
|
/// <br/>
|
|
/// <c>class VehicleController : public NonCopyable</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct VehicleController
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Access the vehicle constraint that this controller is part of
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleController.h#L50">Jolt/Physics/Vehicle/VehicleController.h:50</see>
|
|
/// <br/>
|
|
/// <c>VehicleConstraint & GetConstraint()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle carries its own reference; Dispose it once when you're done.
|
|
/// </para>
|
|
/// </remarks>
|
|
public VehicleConstraint GetConstraint() => Jolt.PInvoke.VehicleController_GetConstraint(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Recreate the settings for this controller
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleController.h#L54">Jolt/Physics/Vehicle/VehicleController.h:54</see>
|
|
/// <br/>
|
|
/// <c>virtual Ref<VehicleControllerSettings> GetSettings() const = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle carries its own reference; Dispose it once when you're done.
|
|
/// </para>
|
|
/// </remarks>
|
|
public VehicleControllerSettings GetSettings() => Jolt.PInvoke.VehicleController_GetSettings(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Views this VehicleController as the WheeledVehicleController it is, or returns a null handle when it is
|
|
/// a different kind - check IsNull(). The same object, not a new reference: never Dispose the result.
|
|
/// </para>
|
|
/// </summary>
|
|
public WheeledVehicleController AsWheeledVehicleController() =>
|
|
Jolt.PInvoke.VehicleController_AsWheeledVehicleController(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Views this VehicleController as the MotorcycleController it is, or returns a null handle when it is a
|
|
/// different kind - check IsNull(). The same object, not a new reference: never Dispose the result.
|
|
/// </para>
|
|
/// </summary>
|
|
public MotorcycleController AsMotorcycleController() =>
|
|
Jolt.PInvoke.VehicleController_AsMotorcycleController(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Views this VehicleController as the TrackedVehicleController it is, or returns a null handle when it is
|
|
/// a different kind - check IsNull(). The same object, not a new reference: never Dispose the result.
|
|
/// </para>
|
|
/// </summary>
|
|
public TrackedVehicleController AsTrackedVehicleController() =>
|
|
Jolt.PInvoke.VehicleController_AsTrackedVehicleController(this);
|
|
}
|
|
}
|