//
// 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 = "SoftBodyMotionProperties_Create")]
public static partial SoftBodyMotionProperties SoftBodyMotionProperties_Create();
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_Destroy")]
public static partial void SoftBodyMotionProperties_Destroy(SoftBodyMotionProperties self);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:50
///
/// void Initialize(const SoftBodyCreationSettings &inSettings)
///
///
///
///
/// Initialize the soft body motion properties
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_Initialize")]
public static partial void SoftBodyMotionProperties_Initialize(SoftBodyMotionProperties self, SoftBodyCreationSettings settings);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:53
///
/// const SoftBodySharedSettings * GetSettings() const
///
///
///
///
/// Get the shared settings of the soft body
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_GetSettings")]
public static partial SoftBodySharedSettings SoftBodyMotionProperties_GetSettings(SoftBodyMotionProperties self);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:64
///
/// Quat GetRodRotation(uint inIndex) const
///
///
///
///
/// Access to the state of rods
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_GetRodRotation")]
public static partial floatQuat SoftBodyMotionProperties_GetRodRotation(SoftBodyMotionProperties self, uint index);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:65
///
/// Vec3 GetRodAngularVelocity(uint inIndex) const
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_GetRodAngularVelocity")]
public static partial float3 SoftBodyMotionProperties_GetRodAngularVelocity(SoftBodyMotionProperties self, uint index);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:77
///
/// uint32 GetNumIterations() const
///
///
///
///
/// Get the number of solver iterations
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_GetNumIterations")]
public static partial uint SoftBodyMotionProperties_GetNumIterations(SoftBodyMotionProperties self);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:78
///
/// void SetNumIterations(uint32 inNumIterations)
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_SetNumIterations")]
public static partial void SoftBodyMotionProperties_SetNumIterations(SoftBodyMotionProperties self, uint numIterations);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:81
///
/// float GetPressure() const
///
///
///
///
/// Get the pressure of the soft body
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_GetPressure")]
public static partial float SoftBodyMotionProperties_GetPressure(SoftBodyMotionProperties self);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:82
///
/// void SetPressure(float inPressure)
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_SetPressure")]
public static partial void SoftBodyMotionProperties_SetPressure(SoftBodyMotionProperties self, float pressure);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:85
///
/// bool GetUpdatePosition() const
///
///
///
///
/// Update the position of the body while simulating (set to false for something that is attached to the
/// static world)
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_GetUpdatePosition")]
public static partial Brutal.Bool8 SoftBodyMotionProperties_GetUpdatePosition(SoftBodyMotionProperties self);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:86
///
/// void SetUpdatePosition(bool inUpdatePosition)
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_SetUpdatePosition")]
public static partial void SoftBodyMotionProperties_SetUpdatePosition(SoftBodyMotionProperties self, Brutal.Bool8 updatePosition);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:89
///
/// bool GetFacesDoubleSided() const
///
///
///
///
/// If the faces in this soft body should be treated as double sided for the purpose of collision
/// detection (ray cast / collide shape / cast shape)
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_GetFacesDoubleSided")]
public static partial Brutal.Bool8 SoftBodyMotionProperties_GetFacesDoubleSided(SoftBodyMotionProperties self);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:90
///
/// void SetFacesDoubleSided(bool inDoubleSided)
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_SetFacesDoubleSided")]
public static partial void SoftBodyMotionProperties_SetFacesDoubleSided(SoftBodyMotionProperties self, Brutal.Bool8 doubleSided);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:93
///
/// bool GetEnableSkinConstraints() const
///
///
///
///
/// Global setting to turn on/off skin constraints
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_GetEnableSkinConstraints")]
public static partial Brutal.Bool8 SoftBodyMotionProperties_GetEnableSkinConstraints(SoftBodyMotionProperties self);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:94
///
/// void SetEnableSkinConstraints(bool inEnableSkinConstraints)
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_SetEnableSkinConstraints")]
public static partial void SoftBodyMotionProperties_SetEnableSkinConstraints(SoftBodyMotionProperties self, Brutal.Bool8 enableSkinConstraints);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:97
///
/// float GetSkinnedMaxDistanceMultiplier() const
///
///
///
///
/// Multiplier applied to Skinned::mMaxDistance to allow tightening or loosening of the skin
/// constraints. 0 to hard skin all vertices.
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_GetSkinnedMaxDistanceMultiplier")]
public static partial float SoftBodyMotionProperties_GetSkinnedMaxDistanceMultiplier(SoftBodyMotionProperties self);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:98
///
/// void SetSkinnedMaxDistanceMultiplier(float inSkinnedMaxDistanceMultiplier)
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_SetSkinnedMaxDistanceMultiplier")]
public static partial void SoftBodyMotionProperties_SetSkinnedMaxDistanceMultiplier(SoftBodyMotionProperties self, float skinnedMaxDistanceMultiplier);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:101
///
/// float GetVertexRadius() const
///
///
///
///
/// How big the particles are, can be used to push the vertices a little bit away from the surface of
/// other bodies to prevent z-fighting
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_GetVertexRadius")]
public static partial float SoftBodyMotionProperties_GetVertexRadius(SoftBodyMotionProperties self);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:102
///
/// void SetVertexRadius(float inVertexRadius)
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_SetVertexRadius")]
public static partial void SoftBodyMotionProperties_SetVertexRadius(SoftBodyMotionProperties self, float vertexRadius);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:105
///
/// const AABox & GetLocalBounds() const
///
///
///
///
/// Get local bounding box
///
///
/// The returned handle is borrowed from its owner; don't Dispose it.
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_GetLocalBounds")]
public static partial AABox SoftBodyMotionProperties_GetLocalBounds(SoftBodyMotionProperties self);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:108
///
/// float GetVolume() const
///
///
///
///
/// Get the volume of the soft body. Note can become negative if the shape is inside out!
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_GetVolume")]
public static partial float SoftBodyMotionProperties_GetVolume(SoftBodyMotionProperties self);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:111
///
/// void CalculateMassAndInertia()
///
///
///
///
/// Calculate the total mass and inertia of this body based on the current state of the vertices
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_CalculateMassAndInertia")]
public static partial void SoftBodyMotionProperties_CalculateMassAndInertia(SoftBodyMotionProperties self);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:115
///
/// void DrawVertices(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform) const
///
///
///
///
/// Draw the state of a soft body
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_DrawVertices")]
public static partial void SoftBodyMotionProperties_DrawVertices(SoftBodyMotionProperties self, DebugRenderer renderer, float4x4 centerOfMassTransform);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:116
///
/// void DrawVertexVelocities(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform) const
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_DrawVertexVelocities")]
public static partial void SoftBodyMotionProperties_DrawVertexVelocities(SoftBodyMotionProperties self, DebugRenderer renderer, float4x4 centerOfMassTransform);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:117
///
/// void DrawEdgeConstraints(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, ESoftBodyConstraintColor inConstraintColor) const
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_DrawEdgeConstraints")]
public static partial void SoftBodyMotionProperties_DrawEdgeConstraints(SoftBodyMotionProperties self, DebugRenderer renderer, float4x4 centerOfMassTransform, ESoftBodyConstraintColor constraintColor);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:118
///
/// void DrawRods(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, ESoftBodyConstraintColor inConstraintColor) const
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_DrawRods")]
public static partial void SoftBodyMotionProperties_DrawRods(SoftBodyMotionProperties self, DebugRenderer renderer, float4x4 centerOfMassTransform, ESoftBodyConstraintColor constraintColor);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:119
///
/// void DrawRodStates(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, ESoftBodyConstraintColor inConstraintColor) const
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_DrawRodStates")]
public static partial void SoftBodyMotionProperties_DrawRodStates(SoftBodyMotionProperties self, DebugRenderer renderer, float4x4 centerOfMassTransform, ESoftBodyConstraintColor constraintColor);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:120
///
/// void DrawRodBendTwistConstraints(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, ESoftBodyConstraintColor inConstraintColor) const
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_DrawRodBendTwistConstraints")]
public static partial void SoftBodyMotionProperties_DrawRodBendTwistConstraints(SoftBodyMotionProperties self, DebugRenderer renderer, float4x4 centerOfMassTransform, ESoftBodyConstraintColor constraintColor);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:121
///
/// void DrawBendConstraints(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, ESoftBodyConstraintColor inConstraintColor) const
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_DrawBendConstraints")]
public static partial void SoftBodyMotionProperties_DrawBendConstraints(SoftBodyMotionProperties self, DebugRenderer renderer, float4x4 centerOfMassTransform, ESoftBodyConstraintColor constraintColor);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:122
///
/// void DrawVolumeConstraints(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, ESoftBodyConstraintColor inConstraintColor) const
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_DrawVolumeConstraints")]
public static partial void SoftBodyMotionProperties_DrawVolumeConstraints(SoftBodyMotionProperties self, DebugRenderer renderer, float4x4 centerOfMassTransform, ESoftBodyConstraintColor constraintColor);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:123
///
/// void DrawSkinConstraints(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, ESoftBodyConstraintColor inConstraintColor) const
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_DrawSkinConstraints")]
public static partial void SoftBodyMotionProperties_DrawSkinConstraints(SoftBodyMotionProperties self, DebugRenderer renderer, float4x4 centerOfMassTransform, ESoftBodyConstraintColor constraintColor);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:124
///
/// void DrawLRAConstraints(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, ESoftBodyConstraintColor inConstraintColor) const
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_DrawLRAConstraints")]
public static partial void SoftBodyMotionProperties_DrawLRAConstraints(SoftBodyMotionProperties self, DebugRenderer renderer, float4x4 centerOfMassTransform, ESoftBodyConstraintColor constraintColor);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:125
///
/// void DrawPredictedBounds(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform) const
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_DrawPredictedBounds")]
public static partial void SoftBodyMotionProperties_DrawPredictedBounds(SoftBodyMotionProperties self, DebugRenderer renderer, float4x4 centerOfMassTransform);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:153
///
/// void CustomUpdate(float inDeltaTime, Body &ioSoftBody, PhysicsSystem &inSystem)
///
///
///
///
/// This function allows you to update the soft body immediately without going through the PhysicsSystem.
/// This is useful if the soft body is teleported and needs to 'settle' or it can be used if a the soft body
/// is not added to the PhysicsSystem and needs to be updated manually. One reason for not adding it to the
/// PhysicsSystem is that you might want to update a soft body immediately after updating an animated object
/// that has the soft body attached to it. If the soft body is added to the PhysicsSystem it will be updated
/// by it, so calling this function will effectively update it twice. Note that when you use this function,
/// only the current thread will be used, whereas if you update through the PhysicsSystem, multiple threads may
/// be used.
/// Note that this will bypass any sleep checks. Since the dynamic objects that the soft body touches
/// will not move during this call, there can be simulation artifacts if you call this function multiple times
/// without running the physics simulation step.
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_CustomUpdate")]
public static partial void SoftBodyMotionProperties_CustomUpdate(SoftBodyMotionProperties self, float deltaTime, Body softBody, PhysicsSystem system);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:160
///
/// void InitializeUpdateContext(float inDeltaTime, Body &inSoftBody, const PhysicsSystem &inSystem, SoftBodyUpdateContext &ioContext)
///
///
///
///
/// Initialize the update context. Not part of the public API.
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_InitializeUpdateContext")]
public static partial void SoftBodyMotionProperties_InitializeUpdateContext(SoftBodyMotionProperties self, float deltaTime, Body softBody, PhysicsSystem system, SoftBodyUpdateContext context);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:163
///
/// void DetermineCollidingShapes(const SoftBodyUpdateContext &inContext, const PhysicsSystem &inSystem, const BodyLockInterface &inBodyLockInterface)
///
///
///
///
/// Do a broad phase check and collect all bodies that can possibly collide with this soft body. Not
/// part of the public API.
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_DetermineCollidingShapes")]
public static partial void SoftBodyMotionProperties_DetermineCollidingShapes(SoftBodyMotionProperties self, SoftBodyUpdateContext context, PhysicsSystem system, BodyLockInterface bodyLockInterface);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:174
///
/// EStatus ParallelUpdate(SoftBodyUpdateContext &ioContext, const PhysicsSettings &inPhysicsSettings)
///
///
///
///
/// Update the soft body, will process a batch of work. Not part of the public API.
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_ParallelUpdate")]
public static partial SoftBodyMotionProperties.EStatus SoftBodyMotionProperties_ParallelUpdate(SoftBodyMotionProperties self, SoftBodyUpdateContext context, ref PhysicsSettings physicsSettings);
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:177
///
/// void UpdateRigidBodyVelocities(const SoftBodyUpdateContext &inContext, BodyInterface &inBodyInterface)
///
///
///
///
/// Update the velocities of all rigid bodies that we collided with. Not part of the public API.
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_UpdateRigidBodyVelocities")]
public static partial void SoftBodyMotionProperties_UpdateRigidBodyVelocities(SoftBodyMotionProperties self, SoftBodyUpdateContext context, BodyInterface bodyInterface);
[LibraryImport("jolt", EntryPoint = "SoftBodyMotionProperties_AsMotionProperties")]
public static partial MotionProperties SoftBodyMotionProperties_AsMotionProperties(SoftBodyMotionProperties self);
}
}
}