//
// 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
{
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_Create")]
public static partial VehicleConstraint VehicleConstraint_Create(
Body vehicleBody,
VehicleConstraintSettings settings
);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetMaxPitchRollAngle")]
public static partial void VehicleConstraint_SetMaxPitchRollAngle(
VehicleConstraint self,
float maxPitchRollAngle
);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetMaxPitchRollAngle")]
public static partial float VehicleConstraint_GetMaxPitchRollAngle(VehicleConstraint self);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetVehicleCollisionTester")]
public static partial void VehicleConstraint_SetVehicleCollisionTester(
VehicleConstraint self,
VehicleCollisionTester tester
);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetVehicleCollisionTester")]
public static partial VehicleCollisionTester VehicleConstraint_GetVehicleCollisionTester(
VehicleConstraint self
);
///
///
/// Set the function that combines the friction of two bodies and returns it Default method is the
/// geometric mean: sqrt(friction1 * friction2).
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleConstraint.h:89
///
/// void SetCombineFriction(const CombineFunction &inCombineFriction)
///
///
///
///
/// 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.
///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetCombineFriction")]
public static partial void VehicleConstraint_SetCombineFriction(
VehicleConstraint self,
delegate* unmanaged[Cdecl] combineFriction,
nint combineFrictionUserData
);
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleConstraint.h:99
///
/// void SetPreStepCallback(const StepCallback &inPreStepCallback)
///
///
///
///
/// 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.
///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetPreStepCallback")]
public static partial void VehicleConstraint_SetPreStepCallback(
VehicleConstraint self,
delegate* unmanaged[Cdecl] preStepCallback,
nint preStepCallbackUserData
);
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleConstraint.h:105
///
/// void SetPostCollideCallback(const StepCallback &inPostCollideCallback)
///
///
///
///
/// 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.
///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetPostCollideCallback")]
public static partial void VehicleConstraint_SetPostCollideCallback(
VehicleConstraint self,
delegate* unmanaged[Cdecl]<
VehicleConstraint,
PhysicsStepListenerContext,
nint,
void> postCollideCallback,
nint postCollideCallbackUserData
);
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleConstraint.h:111
///
/// void SetPostStepCallback(const StepCallback &inPostStepCallback)
///
///
///
///
/// 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.
///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetPostStepCallback")]
public static partial void VehicleConstraint_SetPostStepCallback(
VehicleConstraint self,
delegate* unmanaged[Cdecl] postStepCallback,
nint postStepCallbackUserData
);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_OverrideGravity")]
public static partial void VehicleConstraint_OverrideGravity(VehicleConstraint self, float3 gravity);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_IsGravityOverridden")]
public static partial Brutal.Bool8 VehicleConstraint_IsGravityOverridden(VehicleConstraint self);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetGravityOverride")]
public static partial float3 VehicleConstraint_GetGravityOverride(VehicleConstraint self);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_ResetGravityOverride")]
public static partial void VehicleConstraint_ResetGravityOverride(VehicleConstraint self);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetLocalForward")]
public static partial float3 VehicleConstraint_GetLocalForward(VehicleConstraint self);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetLocalUp")]
public static partial float3 VehicleConstraint_GetLocalUp(VehicleConstraint self);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWorldUp")]
public static partial float3 VehicleConstraint_GetWorldUp(VehicleConstraint self);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetVehicleBody")]
public static partial Body VehicleConstraint_GetVehicleBody(VehicleConstraint self);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetController")]
public static partial VehicleController VehicleConstraint_GetController(VehicleConstraint self);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWheels")]
public static partial void VehicleConstraint_GetWheels(
VehicleConstraint self,
out NativeSpanView outResult
);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWheel")]
public static partial Wheel VehicleConstraint_GetWheel(
VehicleConstraint self,
uint idx,
out uint outInRange
);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWheelLocalBasis")]
public static partial void VehicleConstraint_GetWheelLocalBasis(
VehicleConstraint self,
Wheel wheel,
out float3 forward,
out float3 up,
out float3 right
);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWheelLocalTransform")]
public static partial float4x4 VehicleConstraint_GetWheelLocalTransform(
VehicleConstraint self,
uint wheelIndex,
float3 wheelRight,
float3 wheelUp,
out uint outInRange
);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWheelWorldTransform")]
public static partial float4x4 VehicleConstraint_GetWheelWorldTransform(
VehicleConstraint self,
uint wheelIndex,
float3 wheelRight,
float3 wheelUp,
out uint outInRange
);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetAntiRollBars")]
public static partial void VehicleConstraint_GetAntiRollBars(
VehicleConstraint self,
out NativeSpanView outResult
);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetNumStepsBetweenCollisionTestActive")]
public static partial void VehicleConstraint_SetNumStepsBetweenCollisionTestActive(
VehicleConstraint self,
uint steps
);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetNumStepsBetweenCollisionTestActive")]
public static partial uint VehicleConstraint_GetNumStepsBetweenCollisionTestActive(VehicleConstraint self);
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetNumStepsBetweenCollisionTestInactive")]
public static partial void VehicleConstraint_SetNumStepsBetweenCollisionTestInactive(
VehicleConstraint self,
uint steps
);
///
[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);
}
}
}