mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
266 lines
15 KiB
C#
266 lines
15 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
|
|
{
|
|
/// <inheritdoc cref="VehicleConstraint.Create(Body, VehicleConstraintSettings)"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_Create")]
|
|
public static partial VehicleConstraint VehicleConstraint_Create(
|
|
Body vehicleBody,
|
|
VehicleConstraintSettings settings
|
|
);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.SetMaxPitchRollAngle(float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetMaxPitchRollAngle")]
|
|
public static partial void VehicleConstraint_SetMaxPitchRollAngle(
|
|
VehicleConstraint self,
|
|
float maxPitchRollAngle
|
|
);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.GetMaxPitchRollAngle()"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetMaxPitchRollAngle")]
|
|
public static partial float VehicleConstraint_GetMaxPitchRollAngle(VehicleConstraint self);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.SetVehicleCollisionTester(VehicleCollisionTester)"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetVehicleCollisionTester")]
|
|
public static partial void VehicleConstraint_SetVehicleCollisionTester(
|
|
VehicleConstraint self,
|
|
VehicleCollisionTester tester
|
|
);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.GetVehicleCollisionTester()"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetVehicleCollisionTester")]
|
|
public static partial VehicleCollisionTester VehicleConstraint_GetVehicleCollisionTester(
|
|
VehicleConstraint self
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set the function that combines the friction of two bodies and returns it Default method is the
|
|
/// geometric mean: sqrt(friction1 * friction2).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleConstraint.h#L89">Jolt/Physics/Vehicle/VehicleConstraint.h:89</see>
|
|
/// <br/>
|
|
/// <c>void SetCombineFriction(const CombineFunction &inCombineFriction)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// combineFriction: The callback is invoked from native code: it must be a static method marked
|
|
/// [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])], and userData is passed back to it
|
|
/// verbatim. Jolt calls it without a null check, so null is rejected. The callback and userData are
|
|
/// retained by the native object until they are replaced or the owner is destroyed - keep whatever
|
|
/// userData points at (a GCHandle, an allocation) alive for at least that long, and don't free it at
|
|
/// the end of the call.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetCombineFriction")]
|
|
public static partial void VehicleConstraint_SetCombineFriction(
|
|
VehicleConstraint self,
|
|
delegate* unmanaged[Cdecl]<uint, float*, float*, Body, uint, nint, void> combineFriction,
|
|
nint combineFrictionUserData
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleConstraint.h#L99">Jolt/Physics/Vehicle/VehicleConstraint.h:99</see>
|
|
/// <br/>
|
|
/// <c>void SetPreStepCallback(const StepCallback &inPreStepCallback)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// preStepCallback: The callback is invoked from native code: it must be a static method marked
|
|
/// [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])], and userData is passed back to it
|
|
/// verbatim. Pass null to clear it. The callback and userData are retained by the native object until
|
|
/// they are replaced or the owner is destroyed - keep whatever userData points at (a GCHandle, an
|
|
/// allocation) alive for at least that long, and don't free it at the end of the call.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetPreStepCallback")]
|
|
public static partial void VehicleConstraint_SetPreStepCallback(
|
|
VehicleConstraint self,
|
|
delegate* unmanaged[Cdecl]<VehicleConstraint, PhysicsStepListenerContext, nint, void> preStepCallback,
|
|
nint preStepCallbackUserData
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleConstraint.h#L105">Jolt/Physics/Vehicle/VehicleConstraint.h:105</see>
|
|
/// <br/>
|
|
/// <c>void SetPostCollideCallback(const StepCallback &inPostCollideCallback)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// postCollideCallback: The callback is invoked from native code: it must be a static method marked
|
|
/// [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])], and userData is passed back to it
|
|
/// verbatim. Pass null to clear it. The callback and userData are retained by the native object until
|
|
/// they are replaced or the owner is destroyed - keep whatever userData points at (a GCHandle, an
|
|
/// allocation) alive for at least that long, and don't free it at the end of the call.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetPostCollideCallback")]
|
|
public static partial void VehicleConstraint_SetPostCollideCallback(
|
|
VehicleConstraint self,
|
|
delegate* unmanaged[Cdecl]<
|
|
VehicleConstraint,
|
|
PhysicsStepListenerContext,
|
|
nint,
|
|
void> postCollideCallback,
|
|
nint postCollideCallbackUserData
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleConstraint.h#L111">Jolt/Physics/Vehicle/VehicleConstraint.h:111</see>
|
|
/// <br/>
|
|
/// <c>void SetPostStepCallback(const StepCallback &inPostStepCallback)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// postStepCallback: The callback is invoked from native code: it must be a static method marked
|
|
/// [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])], and userData is passed back to it
|
|
/// verbatim. Pass null to clear it. The callback and userData are retained by the native object until
|
|
/// they are replaced or the owner is destroyed - keep whatever userData points at (a GCHandle, an
|
|
/// allocation) alive for at least that long, and don't free it at the end of the call.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetPostStepCallback")]
|
|
public static partial void VehicleConstraint_SetPostStepCallback(
|
|
VehicleConstraint self,
|
|
delegate* unmanaged[Cdecl]<VehicleConstraint, PhysicsStepListenerContext, nint, void> postStepCallback,
|
|
nint postStepCallbackUserData
|
|
);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.OverrideGravity(float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_OverrideGravity")]
|
|
public static partial void VehicleConstraint_OverrideGravity(VehicleConstraint self, float3 gravity);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.IsGravityOverridden()"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_IsGravityOverridden")]
|
|
public static partial Brutal.Bool8 VehicleConstraint_IsGravityOverridden(VehicleConstraint self);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.GetGravityOverride()"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetGravityOverride")]
|
|
public static partial float3 VehicleConstraint_GetGravityOverride(VehicleConstraint self);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.ResetGravityOverride()"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_ResetGravityOverride")]
|
|
public static partial void VehicleConstraint_ResetGravityOverride(VehicleConstraint self);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.GetLocalForward()"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetLocalForward")]
|
|
public static partial float3 VehicleConstraint_GetLocalForward(VehicleConstraint self);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.GetLocalUp()"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetLocalUp")]
|
|
public static partial float3 VehicleConstraint_GetLocalUp(VehicleConstraint self);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.GetWorldUp()"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWorldUp")]
|
|
public static partial float3 VehicleConstraint_GetWorldUp(VehicleConstraint self);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.GetVehicleBody()"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetVehicleBody")]
|
|
public static partial Body VehicleConstraint_GetVehicleBody(VehicleConstraint self);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.GetController()"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetController")]
|
|
public static partial VehicleController VehicleConstraint_GetController(VehicleConstraint self);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.GetWheels()"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWheels")]
|
|
public static partial void VehicleConstraint_GetWheels(
|
|
VehicleConstraint self,
|
|
out NativeSpanView outResult
|
|
);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.GetWheel(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWheel")]
|
|
public static partial Wheel VehicleConstraint_GetWheel(
|
|
VehicleConstraint self,
|
|
uint idx,
|
|
out uint outInRange
|
|
);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.GetWheelLocalBasis(Wheel, out float3, out float3, out float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWheelLocalBasis")]
|
|
public static partial void VehicleConstraint_GetWheelLocalBasis(
|
|
VehicleConstraint self,
|
|
Wheel wheel,
|
|
out float3 forward,
|
|
out float3 up,
|
|
out float3 right
|
|
);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.GetWheelLocalTransform(uint, float3, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWheelLocalTransform")]
|
|
public static partial float4x4 VehicleConstraint_GetWheelLocalTransform(
|
|
VehicleConstraint self,
|
|
uint wheelIndex,
|
|
float3 wheelRight,
|
|
float3 wheelUp,
|
|
out uint outInRange
|
|
);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.GetWheelWorldTransform(uint, float3, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWheelWorldTransform")]
|
|
public static partial float4x4 VehicleConstraint_GetWheelWorldTransform(
|
|
VehicleConstraint self,
|
|
uint wheelIndex,
|
|
float3 wheelRight,
|
|
float3 wheelUp,
|
|
out uint outInRange
|
|
);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.GetAntiRollBars()"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetAntiRollBars")]
|
|
public static partial void VehicleConstraint_GetAntiRollBars(
|
|
VehicleConstraint self,
|
|
out NativeSpanView outResult
|
|
);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.SetNumStepsBetweenCollisionTestActive(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetNumStepsBetweenCollisionTestActive")]
|
|
public static partial void VehicleConstraint_SetNumStepsBetweenCollisionTestActive(
|
|
VehicleConstraint self,
|
|
uint steps
|
|
);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.GetNumStepsBetweenCollisionTestActive()"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetNumStepsBetweenCollisionTestActive")]
|
|
public static partial uint VehicleConstraint_GetNumStepsBetweenCollisionTestActive(VehicleConstraint self);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.SetNumStepsBetweenCollisionTestInactive(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetNumStepsBetweenCollisionTestInactive")]
|
|
public static partial void VehicleConstraint_SetNumStepsBetweenCollisionTestInactive(
|
|
VehicleConstraint self,
|
|
uint steps
|
|
);
|
|
|
|
/// <inheritdoc cref="VehicleConstraint.GetNumStepsBetweenCollisionTestInactive()"/>
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetNumStepsBetweenCollisionTestInactive")]
|
|
public static partial uint VehicleConstraint_GetNumStepsBetweenCollisionTestInactive(
|
|
VehicleConstraint self
|
|
);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_AsPhysicsStepListener")]
|
|
public static partial PhysicsStepListener VehicleConstraint_AsPhysicsStepListener(VehicleConstraint self);
|
|
}
|
|
}
|
|
}
|