mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
229 lines
14 KiB
C#
229 lines
14 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
|
|
{
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_Create")]
|
|
public static partial SoftBodySharedSettings SoftBodySharedSettings_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodySharedSettings.h#L57">Jolt/Physics/SoftBody/SoftBodySharedSettings.h:57</see>
|
|
/// <br/>
|
|
/// <c>void CreateConstraints(const VertexAttributes *inVertexAttributes, uint inVertexAttributesLength, EBendType inBendType = EBendType::Distance, float inAngleTolerance = DegreesToRadians(8.0f))</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Automatically create constraints based on the faces of the soft body
|
|
/// @param inVertexAttributes A list of attributes for each vertex (1-on-1 with mVertices, note that if the list is smaller than mVertices the last element will be repeated). This defines the properties of the constraints that are created.
|
|
/// @param inVertexAttributesLength The length of inVertexAttributes
|
|
/// @param inBendType The type of bend constraint to create
|
|
/// @param inAngleTolerance Shear edges are created when two connected triangles form a quad (are roughly in the same plane and form a square with roughly 90 degree angles). This defines the tolerance (in radians).
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CreateConstraints")]
|
|
public static partial void SoftBodySharedSettings_CreateConstraints(SoftBodySharedSettings self, SoftBodySharedSettings.VertexAttributes* vertexAttributes, uint vertexAttributesLength, SoftBodySharedSettings.EBendType bendType, float angleTolerance);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodySharedSettings.h#L60">Jolt/Physics/SoftBody/SoftBodySharedSettings.h:60</see>
|
|
/// <br/>
|
|
/// <c>void CalculateEdgeLengths()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Calculate the initial lengths of all springs of the edges of this soft body (if you use
|
|
/// CreateConstraint, this is already done)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateEdgeLengths")]
|
|
public static partial void SoftBodySharedSettings_CalculateEdgeLengths(SoftBodySharedSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodySharedSettings.h#L64">Jolt/Physics/SoftBody/SoftBodySharedSettings.h:64</see>
|
|
/// <br/>
|
|
/// <c>void CalculateRodProperties()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Calculate the properties of the rods
|
|
/// Note that this can swap mVertex of the RodStretchShear constraints if two rods are connected through a RodBendTwist constraint but point in opposite directions.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateRodProperties")]
|
|
public static partial void SoftBodySharedSettings_CalculateRodProperties(SoftBodySharedSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodySharedSettings.h#L68">Jolt/Physics/SoftBody/SoftBodySharedSettings.h:68</see>
|
|
/// <br/>
|
|
/// <c>void CalculateLRALengths(float inMaxDistanceMultiplier = 1.0f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Calculate the max lengths for the long range attachment constraints based on Euclidean distance (if you use CreateConstraints, this is already done)
|
|
/// @param inMaxDistanceMultiplier Multiplier for the max distance of the LRA constraint, e.g. 1.01 means the max distance is 1% longer than the calculated distance in the rest pose.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateLRALengths")]
|
|
public static partial void SoftBodySharedSettings_CalculateLRALengths(SoftBodySharedSettings self, float maxDistanceMultiplier);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodySharedSettings.h#L71">Jolt/Physics/SoftBody/SoftBodySharedSettings.h:71</see>
|
|
/// <br/>
|
|
/// <c>void CalculateBendConstraintConstants()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Calculate the constants for the bend constraints (if you use CreateConstraints, this is already
|
|
/// done)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateBendConstraintConstants")]
|
|
public static partial void SoftBodySharedSettings_CalculateBendConstraintConstants(SoftBodySharedSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodySharedSettings.h#L74">Jolt/Physics/SoftBody/SoftBodySharedSettings.h:74</see>
|
|
/// <br/>
|
|
/// <c>void CalculateVolumeConstraintVolumes()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Calculates the initial volume of all tetrahedra of this soft body
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateVolumeConstraintVolumes")]
|
|
public static partial void SoftBodySharedSettings_CalculateVolumeConstraintVolumes(SoftBodySharedSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodySharedSettings.h#L77">Jolt/Physics/SoftBody/SoftBodySharedSettings.h:77</see>
|
|
/// <br/>
|
|
/// <c>void CalculateSkinnedConstraintNormals()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Calculate information needed to be able to calculate the skinned constraint normals at run-time
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateSkinnedConstraintNormals")]
|
|
public static partial void SoftBodySharedSettings_CalculateSkinnedConstraintNormals(SoftBodySharedSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodySharedSettings.h#L96">Jolt/Physics/SoftBody/SoftBodySharedSettings.h:96</see>
|
|
/// <br/>
|
|
/// <c>void Optimize()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Optimize the soft body settings without results
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_Optimize")]
|
|
public static partial void SoftBodySharedSettings_Optimize(SoftBodySharedSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodySharedSettings.h#L99">Jolt/Physics/SoftBody/SoftBodySharedSettings.h:99</see>
|
|
/// <br/>
|
|
/// <c>Ref<SoftBodySharedSettings> Clone() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Clone this object
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_Clone")]
|
|
public static partial SoftBodySharedSettings SoftBodySharedSettings_Clone(SoftBodySharedSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodySharedSettings.h#L102">Jolt/Physics/SoftBody/SoftBodySharedSettings.h:102</see>
|
|
/// <br/>
|
|
/// <c>void SaveBinaryState(StreamOut &inStream) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Saves the state of this object in binary form to inStream. Doesn't store the material list.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SaveBinaryState")]
|
|
public static partial void SoftBodySharedSettings_SaveBinaryState(SoftBodySharedSettings self, StreamOut stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodySharedSettings.h#L105">Jolt/Physics/SoftBody/SoftBodySharedSettings.h:105</see>
|
|
/// <br/>
|
|
/// <c>void RestoreBinaryState(StreamIn &inStream)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Restore the state of this object from inStream. Doesn't restore the material list.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_RestoreBinaryState")]
|
|
public static partial void SoftBodySharedSettings_RestoreBinaryState(SoftBodySharedSettings self, StreamIn stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodySharedSettings.h#L124">Jolt/Physics/SoftBody/SoftBodySharedSettings.h:124</see>
|
|
/// <br/>
|
|
/// <c>static Ref<SoftBodySharedSettings> sCreateCube(uint inGridSize, float inGridSpacing)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Create a cube. This can be used to create a simple soft body for testing purposes.
|
|
/// It will contain edge constraints, volume constraints and faces.
|
|
/// @param inGridSize Number of points along each axis
|
|
/// @param inGridSpacing Distance between points
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_sCreateCube")]
|
|
public static partial SoftBodySharedSettings SoftBodySharedSettings_sCreateCube(uint gridSize, float gridSpacing);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodySharedSettings.h#L345">Jolt/Physics/SoftBody/SoftBodySharedSettings.h:345</see>
|
|
/// <br/>
|
|
/// <c>void AddFace(const Face &inFace)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Add a face to this soft body
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_AddFace")]
|
|
public static partial void SoftBodySharedSettings_AddFace(SoftBodySharedSettings self, ref SoftBodySharedSettings.Face face);
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_AddRef")]
|
|
public static partial void SoftBodySharedSettings_AddRef(SoftBodySharedSettings self);
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_Release")]
|
|
public static partial void SoftBodySharedSettings_Release(SoftBodySharedSettings self);
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetRefCount")]
|
|
public static partial uint SoftBodySharedSettings_GetRefCount(SoftBodySharedSettings self);
|
|
}
|
|
}
|
|
}
|