// // 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(); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodySharedSettings.h:57 ///
/// void CreateConstraints(const VertexAttributes *inVertexAttributes, uint inVertexAttributesLength, EBendType inBendType = EBendType::Distance, float inAngleTolerance = DegreesToRadians(8.0f)) ///
///
/// /// /// 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). /// /// [LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CreateConstraints")] public static partial void SoftBodySharedSettings_CreateConstraints(SoftBodySharedSettings self, SoftBodySharedSettings.VertexAttributes* vertexAttributes, uint vertexAttributesLength, SoftBodySharedSettings.EBendType bendType, float angleTolerance); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodySharedSettings.h:60 ///
/// void CalculateEdgeLengths() ///
///
/// /// /// Calculate the initial lengths of all springs of the edges of this soft body (if you use /// CreateConstraint, this is already done) /// /// [LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateEdgeLengths")] public static partial void SoftBodySharedSettings_CalculateEdgeLengths(SoftBodySharedSettings self); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodySharedSettings.h:64 ///
/// void CalculateRodProperties() ///
///
/// /// /// 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. /// /// [LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateRodProperties")] public static partial void SoftBodySharedSettings_CalculateRodProperties(SoftBodySharedSettings self); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodySharedSettings.h:68 ///
/// void CalculateLRALengths(float inMaxDistanceMultiplier = 1.0f) ///
///
/// /// /// 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. /// /// [LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateLRALengths")] public static partial void SoftBodySharedSettings_CalculateLRALengths(SoftBodySharedSettings self, float maxDistanceMultiplier); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodySharedSettings.h:71 ///
/// void CalculateBendConstraintConstants() ///
///
/// /// /// Calculate the constants for the bend constraints (if you use CreateConstraints, this is already /// done) /// /// [LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateBendConstraintConstants")] public static partial void SoftBodySharedSettings_CalculateBendConstraintConstants(SoftBodySharedSettings self); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodySharedSettings.h:74 ///
/// void CalculateVolumeConstraintVolumes() ///
///
/// /// /// Calculates the initial volume of all tetrahedra of this soft body /// /// [LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateVolumeConstraintVolumes")] public static partial void SoftBodySharedSettings_CalculateVolumeConstraintVolumes(SoftBodySharedSettings self); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodySharedSettings.h:77 ///
/// void CalculateSkinnedConstraintNormals() ///
///
/// /// /// Calculate information needed to be able to calculate the skinned constraint normals at run-time /// /// [LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateSkinnedConstraintNormals")] public static partial void SoftBodySharedSettings_CalculateSkinnedConstraintNormals(SoftBodySharedSettings self); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodySharedSettings.h:96 ///
/// void Optimize() ///
///
/// /// /// Optimize the soft body settings without results /// /// [LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_Optimize")] public static partial void SoftBodySharedSettings_Optimize(SoftBodySharedSettings self); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodySharedSettings.h:99 ///
/// Ref<SoftBodySharedSettings> Clone() const ///
///
/// /// /// Clone this object /// /// [LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_Clone")] public static partial SoftBodySharedSettings SoftBodySharedSettings_Clone(SoftBodySharedSettings self); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodySharedSettings.h:102 ///
/// void SaveBinaryState(StreamOut &inStream) const ///
///
/// /// /// Saves the state of this object in binary form to inStream. Doesn't store the material list. /// /// [LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SaveBinaryState")] public static partial void SoftBodySharedSettings_SaveBinaryState(SoftBodySharedSettings self, StreamOut stream); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodySharedSettings.h:105 ///
/// void RestoreBinaryState(StreamIn &inStream) ///
///
/// /// /// Restore the state of this object from inStream. Doesn't restore the material list. /// /// [LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_RestoreBinaryState")] public static partial void SoftBodySharedSettings_RestoreBinaryState(SoftBodySharedSettings self, StreamIn stream); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodySharedSettings.h:124 ///
/// static Ref<SoftBodySharedSettings> sCreateCube(uint inGridSize, float inGridSpacing) ///
///
/// /// /// 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 /// /// [LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_sCreateCube")] public static partial SoftBodySharedSettings SoftBodySharedSettings_sCreateCube(uint gridSize, float gridSpacing); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodySharedSettings.h:345 ///
/// void AddFace(const Face &inFace) ///
///
/// /// /// Add a face to this soft body /// /// [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); } } }