mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 12:38:24 +01:00
657 lines
33 KiB
C#
657 lines
33 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="BodyInterface.Init(BodyLockInterface, BodyManager, BroadPhase)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_Init")]
|
|
public static partial void BodyInterface_Init(
|
|
BodyInterface self,
|
|
BodyLockInterface bodyLockInterface,
|
|
BodyManager bodyManager,
|
|
BroadPhase broadPhase
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.CreateBody(BodyCreationSettings)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateBody")]
|
|
public static partial Body BodyInterface_CreateBody(BodyInterface self, BodyCreationSettings settings);
|
|
|
|
/// <inheritdoc cref="BodyInterface.CreateSoftBody(SoftBodyCreationSettings)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateSoftBody")]
|
|
public static partial Body BodyInterface_CreateSoftBody(
|
|
BodyInterface self,
|
|
SoftBodyCreationSettings settings
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.CreateBodyWithID(uint, BodyCreationSettings)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateBodyWithID")]
|
|
public static partial Body BodyInterface_CreateBodyWithID(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
BodyCreationSettings settings
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.CreateSoftBodyWithID(uint, SoftBodyCreationSettings)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateSoftBodyWithID")]
|
|
public static partial Body BodyInterface_CreateSoftBodyWithID(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
SoftBodyCreationSettings settings
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.CreateBodyWithoutID(BodyCreationSettings)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateBodyWithoutID")]
|
|
public static partial Body BodyInterface_CreateBodyWithoutID(
|
|
BodyInterface self,
|
|
BodyCreationSettings settings
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.CreateSoftBodyWithoutID(SoftBodyCreationSettings)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateSoftBodyWithoutID")]
|
|
public static partial Body BodyInterface_CreateSoftBodyWithoutID(
|
|
BodyInterface self,
|
|
SoftBodyCreationSettings settings
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.DestroyBodyWithoutID(Body)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_DestroyBodyWithoutID")]
|
|
public static partial void BodyInterface_DestroyBodyWithoutID(BodyInterface self, Body body);
|
|
|
|
/// <inheritdoc cref="BodyInterface.AssignBodyID(Body)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AssignBodyID")]
|
|
public static partial Brutal.Bool8 BodyInterface_AssignBodyID(BodyInterface self, Body body);
|
|
|
|
/// <inheritdoc cref="BodyInterface.AssignBodyID(Body, uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AssignBodyID_2")]
|
|
public static partial Brutal.Bool8 BodyInterface_AssignBodyID_2(BodyInterface self, Body body, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.UnassignBodyID(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_UnassignBodyID")]
|
|
public static partial Body BodyInterface_UnassignBodyID(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.UnassignBodyIDs(ReadOnlySpan{uint}, Ptr{Body})"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_UnassignBodyIDs")]
|
|
public static partial void BodyInterface_UnassignBodyIDs(
|
|
BodyInterface self,
|
|
uint* bodyIDs,
|
|
int number,
|
|
Body* bodies
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.DestroyBody(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_DestroyBody")]
|
|
public static partial void BodyInterface_DestroyBody(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.DestroyBodies(ReadOnlySpan{uint})"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_DestroyBodies")]
|
|
public static partial void BodyInterface_DestroyBodies(BodyInterface self, uint* bodyIDs, int number);
|
|
|
|
/// <inheritdoc cref="BodyInterface.AddBody(uint, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddBody")]
|
|
public static partial void BodyInterface_AddBody(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
Activation activationMode
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.RemoveBody(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_RemoveBody")]
|
|
public static partial void BodyInterface_RemoveBody(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.IsAdded(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_IsAdded")]
|
|
public static partial Brutal.Bool8 BodyInterface_IsAdded(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.CreateAndAddBody(BodyCreationSettings, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateAndAddBody")]
|
|
public static partial uint BodyInterface_CreateAndAddBody(
|
|
BodyInterface self,
|
|
BodyCreationSettings settings,
|
|
Activation activationMode
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.CreateAndAddSoftBody(SoftBodyCreationSettings, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateAndAddSoftBody")]
|
|
public static partial uint BodyInterface_CreateAndAddSoftBody(
|
|
BodyInterface self,
|
|
SoftBodyCreationSettings settings,
|
|
Activation activationMode
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.RemoveBodies(Span{uint})"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_RemoveBodies")]
|
|
public static partial void BodyInterface_RemoveBodies(BodyInterface self, uint* bodies, int number);
|
|
|
|
/// <inheritdoc cref="BodyInterface.ActivateBody(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_ActivateBody")]
|
|
public static partial void BodyInterface_ActivateBody(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.ActivateBodies(ReadOnlySpan{uint})"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_ActivateBodies")]
|
|
public static partial void BodyInterface_ActivateBodies(BodyInterface self, uint* bodyIDs, int number);
|
|
|
|
/// <inheritdoc cref="BodyInterface.ActivateBodiesInAABox(in AABox, BroadPhaseLayerFilter, ObjectLayerFilter)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_ActivateBodiesInAABox")]
|
|
public static partial void BodyInterface_ActivateBodiesInAABox(
|
|
BodyInterface self,
|
|
in AABox box,
|
|
BroadPhaseLayerFilter broadPhaseLayerFilter,
|
|
ObjectLayerFilter objectLayerFilter
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.DeactivateBody(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_DeactivateBody")]
|
|
public static partial void BodyInterface_DeactivateBody(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.DeactivateBodies(ReadOnlySpan{uint})"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_DeactivateBodies")]
|
|
public static partial void BodyInterface_DeactivateBodies(BodyInterface self, uint* bodyIDs, int number);
|
|
|
|
/// <inheritdoc cref="BodyInterface.IsActive(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_IsActive")]
|
|
public static partial Brutal.Bool8 BodyInterface_IsActive(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.ResetSleepTimer(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_ResetSleepTimer")]
|
|
public static partial void BodyInterface_ResetSleepTimer(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.CreateConstraint(TwoBodyConstraintSettings, uint, uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateConstraint")]
|
|
public static partial TwoBodyConstraint BodyInterface_CreateConstraint(
|
|
BodyInterface self,
|
|
TwoBodyConstraintSettings settings,
|
|
uint bodyID1,
|
|
uint bodyID2
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.ActivateConstraint(TwoBodyConstraint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_ActivateConstraint")]
|
|
public static partial void BodyInterface_ActivateConstraint(
|
|
BodyInterface self,
|
|
TwoBodyConstraint constraint
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetShape(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetShape")]
|
|
public static partial Shape BodyInterface_GetShape(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetShape(uint, Shape, bool, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetShape")]
|
|
public static partial void BodyInterface_SetShape(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
Shape shape,
|
|
Brutal.Bool8 updateMassProperties,
|
|
Activation activationMode
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.NotifyShapeChanged(uint, float3, bool, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_NotifyShapeChanged")]
|
|
public static partial void BodyInterface_NotifyShapeChanged(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 previousCenterOfMass,
|
|
Brutal.Bool8 updateMassProperties,
|
|
Activation activationMode
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetObjectLayer(uint, ushort)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetObjectLayer")]
|
|
public static partial void BodyInterface_SetObjectLayer(BodyInterface self, uint bodyID, ushort layer);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetObjectLayer(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetObjectLayer")]
|
|
public static partial ushort BodyInterface_GetObjectLayer(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetPositionAndRotation(uint, float3, floatQuat, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPositionAndRotation")]
|
|
public static partial void BodyInterface_SetPositionAndRotation(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 position,
|
|
floatQuat rotation,
|
|
Activation activationMode
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetPositionAndRotationWhenChanged(uint, float3, floatQuat, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPositionAndRotationWhenChanged")]
|
|
public static partial void BodyInterface_SetPositionAndRotationWhenChanged(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 position,
|
|
floatQuat rotation,
|
|
Activation activationMode
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetPositionAndRotation(uint, out float3, out floatQuat)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetPositionAndRotation")]
|
|
public static partial void BodyInterface_GetPositionAndRotation(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
out float3 position,
|
|
out floatQuat rotation
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetPosition(uint, float3, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPosition")]
|
|
public static partial void BodyInterface_SetPosition(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 position,
|
|
Activation activationMode
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetPosition(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetPosition")]
|
|
public static partial float3 BodyInterface_GetPosition(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetCenterOfMassPosition(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetCenterOfMassPosition")]
|
|
public static partial float3 BodyInterface_GetCenterOfMassPosition(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetRotation(uint, floatQuat, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetRotation")]
|
|
public static partial void BodyInterface_SetRotation(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
floatQuat rotation,
|
|
Activation activationMode
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetRotation(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetRotation")]
|
|
public static partial floatQuat BodyInterface_GetRotation(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetWorldTransform(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetWorldTransform")]
|
|
public static partial float4x4 BodyInterface_GetWorldTransform(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetCenterOfMassTransform(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetCenterOfMassTransform")]
|
|
public static partial float4x4 BodyInterface_GetCenterOfMassTransform(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.MoveKinematic(uint, float3, floatQuat, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_MoveKinematic")]
|
|
public static partial void BodyInterface_MoveKinematic(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 targetPosition,
|
|
floatQuat targetRotation,
|
|
float deltaTime
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetLinearAndAngularVelocity(uint, float3, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetLinearAndAngularVelocity")]
|
|
public static partial void BodyInterface_SetLinearAndAngularVelocity(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 linearVelocity,
|
|
float3 angularVelocity
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetLinearAndAngularVelocity(uint, out float3, out float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetLinearAndAngularVelocity")]
|
|
public static partial void BodyInterface_GetLinearAndAngularVelocity(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
out float3 linearVelocity,
|
|
out float3 angularVelocity
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetLinearVelocity(uint, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetLinearVelocity")]
|
|
public static partial void BodyInterface_SetLinearVelocity(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 linearVelocity
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetLinearVelocity(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetLinearVelocity")]
|
|
public static partial float3 BodyInterface_GetLinearVelocity(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.AddLinearVelocity(uint, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddLinearVelocity")]
|
|
public static partial void BodyInterface_AddLinearVelocity(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 linearVelocity
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.AddLinearAndAngularVelocity(uint, float3, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddLinearAndAngularVelocity")]
|
|
public static partial void BodyInterface_AddLinearAndAngularVelocity(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 linearVelocity,
|
|
float3 angularVelocity
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetAngularVelocity(uint, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetAngularVelocity")]
|
|
public static partial void BodyInterface_SetAngularVelocity(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 angularVelocity
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetAngularVelocity(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetAngularVelocity")]
|
|
public static partial float3 BodyInterface_GetAngularVelocity(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetPointVelocity(uint, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetPointVelocity")]
|
|
public static partial float3 BodyInterface_GetPointVelocity(BodyInterface self, uint bodyID, float3 point);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetPositionRotationAndVelocity(uint, float3, floatQuat, float3, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPositionRotationAndVelocity")]
|
|
public static partial void BodyInterface_SetPositionRotationAndVelocity(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 position,
|
|
floatQuat rotation,
|
|
float3 linearVelocity,
|
|
float3 angularVelocity
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.AddForce(uint, float3, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddForce")]
|
|
public static partial void BodyInterface_AddForce(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 force,
|
|
Activation activationMode
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.AddForce(uint, float3, float3, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddForce_2")]
|
|
public static partial void BodyInterface_AddForce_2(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 force,
|
|
float3 point,
|
|
Activation activationMode
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.AddTorque(uint, float3, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddTorque")]
|
|
public static partial void BodyInterface_AddTorque(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 torque,
|
|
Activation activationMode
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.AddForceAndTorque(uint, float3, float3, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddForceAndTorque")]
|
|
public static partial void BodyInterface_AddForceAndTorque(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 force,
|
|
float3 torque,
|
|
Activation activationMode
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.AddImpulse(uint, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddImpulse")]
|
|
public static partial void BodyInterface_AddImpulse(BodyInterface self, uint bodyID, float3 impulse);
|
|
|
|
/// <inheritdoc cref="BodyInterface.AddImpulse(uint, float3, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddImpulse_2")]
|
|
public static partial void BodyInterface_AddImpulse_2(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 impulse,
|
|
float3 point
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.AddAngularImpulse(uint, float3)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddAngularImpulse")]
|
|
public static partial void BodyInterface_AddAngularImpulse(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 angularImpulse
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.ApplyBuoyancyImpulse(uint, float3, float3, float, float, float, float3, float3, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_ApplyBuoyancyImpulse")]
|
|
public static partial Brutal.Bool8 BodyInterface_ApplyBuoyancyImpulse(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float3 surfacePosition,
|
|
float3 surfaceNormal,
|
|
float buoyancy,
|
|
float linearDrag,
|
|
float angularDrag,
|
|
float3 fluidVelocity,
|
|
float3 gravity,
|
|
float deltaTime
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetBodyType(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetBodyType")]
|
|
public static partial BodyType BodyInterface_GetBodyType(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetMotionType(uint, MotionType, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetMotionType")]
|
|
public static partial void BodyInterface_SetMotionType(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
MotionType motionType,
|
|
Activation activationMode
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetMotionType(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMotionType")]
|
|
public static partial MotionType BodyInterface_GetMotionType(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetMotionQuality(uint, MotionQuality)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetMotionQuality")]
|
|
public static partial void BodyInterface_SetMotionQuality(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
MotionQuality motionQuality
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetMotionQuality(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMotionQuality")]
|
|
public static partial MotionQuality BodyInterface_GetMotionQuality(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetInverseInertia(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetInverseInertia")]
|
|
public static partial float4x4 BodyInterface_GetInverseInertia(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetRestitution(uint, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetRestitution")]
|
|
public static partial void BodyInterface_SetRestitution(BodyInterface self, uint bodyID, float restitution);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetRestitution(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetRestitution")]
|
|
public static partial float BodyInterface_GetRestitution(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetFriction(uint, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetFriction")]
|
|
public static partial void BodyInterface_SetFriction(BodyInterface self, uint bodyID, float friction);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetFriction(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetFriction")]
|
|
public static partial float BodyInterface_GetFriction(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetGravityFactor(uint, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetGravityFactor")]
|
|
public static partial void BodyInterface_SetGravityFactor(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float gravityFactor
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetGravityFactor(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetGravityFactor")]
|
|
public static partial float BodyInterface_GetGravityFactor(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetMaxLinearVelocity(uint, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetMaxLinearVelocity")]
|
|
public static partial void BodyInterface_SetMaxLinearVelocity(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float linearVelocity
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetMaxLinearVelocity(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMaxLinearVelocity")]
|
|
public static partial float BodyInterface_GetMaxLinearVelocity(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetMaxAngularVelocity(uint, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetMaxAngularVelocity")]
|
|
public static partial void BodyInterface_SetMaxAngularVelocity(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
float angularVelocity
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetMaxAngularVelocity(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMaxAngularVelocity")]
|
|
public static partial float BodyInterface_GetMaxAngularVelocity(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetUseManifoldReduction(uint, bool)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetUseManifoldReduction")]
|
|
public static partial void BodyInterface_SetUseManifoldReduction(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
Brutal.Bool8 useReduction
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetUseManifoldReduction(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetUseManifoldReduction")]
|
|
public static partial Brutal.Bool8 BodyInterface_GetUseManifoldReduction(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetIsSensor(uint, bool)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetIsSensor")]
|
|
public static partial void BodyInterface_SetIsSensor(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
Brutal.Bool8 isSensor
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.IsSensor(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_IsSensor")]
|
|
public static partial Brutal.Bool8 BodyInterface_IsSensor(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetCollisionGroup(uint, CollisionGroup)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetCollisionGroup")]
|
|
public static partial void BodyInterface_SetCollisionGroup(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
CollisionGroup collisionGroup
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetCollisionGroup(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetCollisionGroup")]
|
|
public static partial CollisionGroup BodyInterface_GetCollisionGroup(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetTransformedShape(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetTransformedShape")]
|
|
public static partial TransformedShape BodyInterface_GetTransformedShape(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetUserData(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetUserData")]
|
|
public static partial ulong BodyInterface_GetUserData(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetUserData(uint, ulong)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetUserData")]
|
|
public static partial void BodyInterface_SetUserData(BodyInterface self, uint bodyID, ulong userData);
|
|
|
|
/// <inheritdoc cref="BodyInterface.GetMaterial(uint, uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMaterial")]
|
|
public static partial PhysicsMaterial BodyInterface_GetMaterial(
|
|
BodyInterface self,
|
|
uint bodyID,
|
|
uint subShapeID
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.InvalidateContactCache(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_InvalidateContactCache")]
|
|
public static partial void BodyInterface_InvalidateContactCache(BodyInterface self, uint bodyID);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetPositionsAndRotations(ReadOnlySpan{uint}, ReadOnlySpan{float3}, ReadOnlySpan{floatQuat}, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPositionsAndRotations")]
|
|
public static partial void BodyInterface_SetPositionsAndRotations(
|
|
BodyInterface self,
|
|
uint* bodyIDs,
|
|
nuint bodyIDsCount,
|
|
float3* positions,
|
|
nuint positionsCount,
|
|
floatQuat* rotations,
|
|
nuint rotationsCount,
|
|
Activation activation
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetPositionsAndRotationsWhenChanged(ReadOnlySpan{uint}, ReadOnlySpan{float3}, ReadOnlySpan{floatQuat}, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPositionsAndRotationsWhenChanged")]
|
|
public static partial void BodyInterface_SetPositionsAndRotationsWhenChanged(
|
|
BodyInterface self,
|
|
uint* bodyIDs,
|
|
nuint bodyIDsCount,
|
|
float3* positions,
|
|
nuint positionsCount,
|
|
floatQuat* rotations,
|
|
nuint rotationsCount,
|
|
Activation activation
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.MoveKinematics(ReadOnlySpan{uint}, ReadOnlySpan{float3}, ReadOnlySpan{floatQuat}, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_MoveKinematics")]
|
|
public static partial void BodyInterface_MoveKinematics(
|
|
BodyInterface self,
|
|
uint* bodyIDs,
|
|
nuint bodyIDsCount,
|
|
float3* positions,
|
|
nuint positionsCount,
|
|
floatQuat* rotations,
|
|
nuint rotationsCount,
|
|
float deltaTime
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.SetLinearAndAngularVelocities(ReadOnlySpan{uint}, ReadOnlySpan{float3}, ReadOnlySpan{float3})"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetLinearAndAngularVelocities")]
|
|
public static partial void BodyInterface_SetLinearAndAngularVelocities(
|
|
BodyInterface self,
|
|
uint* bodyIDs,
|
|
nuint bodyIDsCount,
|
|
float3* linearVelocities,
|
|
nuint linearVelocitiesCount,
|
|
float3* angularVelocities,
|
|
nuint angularVelocitiesCount
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.AddForces(ReadOnlySpan{uint}, ReadOnlySpan{float3}, Activation)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddForces")]
|
|
public static partial void BodyInterface_AddForces(
|
|
BodyInterface self,
|
|
uint* bodyIDs,
|
|
nuint bodyIDsCount,
|
|
float3* forces,
|
|
nuint forcesCount,
|
|
Activation activation
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyInterface.AddImpulses(ReadOnlySpan{uint}, ReadOnlySpan{float3})"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddImpulses")]
|
|
public static partial void BodyInterface_AddImpulses(
|
|
BodyInterface self,
|
|
uint* bodyIDs,
|
|
nuint bodyIDsCount,
|
|
float3* impulses,
|
|
nuint impulsesCount
|
|
);
|
|
}
|
|
}
|
|
}
|