// // 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 { /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:23 ///
/// SoftBodyCreationSettings() = default ///
///
/// /// /// Constructor /// /// [LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_Create")] public static partial SoftBodyCreationSettings SoftBodyCreationSettings_Create(); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:24 ///
/// SoftBodyCreationSettings(const SoftBodySharedSettings *inSettings, RVec3Arg inPosition, QuatArg inRotation, ObjectLayer inObjectLayer) ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_Create_2")] public static partial SoftBodyCreationSettings SoftBodyCreationSettings_Create_2(SoftBodySharedSettings settings, float3 position, floatQuat rotation, ushort objectLayer); [LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_Destroy")] public static partial void SoftBodyCreationSettings_Destroy(SoftBodyCreationSettings self); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:27 ///
/// void SaveBinaryState(StreamOut &inStream) const ///
///
/// /// /// Saves the state of this object in binary form to inStream. Doesn't store the shared settings nor the /// group filter. /// /// [LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SaveBinaryState")] public static partial void SoftBodyCreationSettings_SaveBinaryState(SoftBodyCreationSettings self, StreamOut stream); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:30 ///
/// void RestoreBinaryState(StreamIn &inStream) ///
///
/// /// /// Restore the state of this object from inStream. Doesn't restore the shared settings nor the group /// filter. /// /// [LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_RestoreBinaryState")] public static partial void SoftBodyCreationSettings_RestoreBinaryState(SoftBodyCreationSettings self, StreamIn stream); /// /// /// Defines the configuration of this soft body /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:49 ///
/// RefConst<SoftBodySharedSettings> mSettings ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetSettings")] public static partial SoftBodySharedSettings SoftBodyCreationSettings_GetSettings(SoftBodyCreationSettings self); /// /// /// Defines the configuration of this soft body /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:49 ///
/// RefConst<SoftBodySharedSettings> mSettings ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetSettings")] public static partial void SoftBodyCreationSettings_SetSettings(SoftBodyCreationSettings self, SoftBodySharedSettings value); /// /// /// Initial position of the soft body /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:51 ///
/// RVec3 mPosition { RVec3::sZero() } ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetPosition")] public static partial float3 SoftBodyCreationSettings_GetPosition(SoftBodyCreationSettings self); /// /// /// Initial position of the soft body /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:51 ///
/// RVec3 mPosition { RVec3::sZero() } ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetPosition")] public static partial void SoftBodyCreationSettings_SetPosition(SoftBodyCreationSettings self, float3 value); /// /// /// Initial rotation of the soft body /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:52 ///
/// Quat mRotation { Quat::sIdentity() } ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetRotation")] public static partial floatQuat SoftBodyCreationSettings_GetRotation(SoftBodyCreationSettings self); /// /// /// Initial rotation of the soft body /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:52 ///
/// Quat mRotation { Quat::sIdentity() } ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetRotation")] public static partial void SoftBodyCreationSettings_SetRotation(SoftBodyCreationSettings self, floatQuat value); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:55 ///
/// uint64 mUserData = 0 ///
///
/// /// /// User data value (can be used by application) /// /// [LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetUserData")] public static partial ulong SoftBodyCreationSettings_GetUserData(SoftBodyCreationSettings self); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:55 ///
/// uint64 mUserData = 0 ///
///
/// /// /// User data value (can be used by application) /// /// [LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetUserData")] public static partial void SoftBodyCreationSettings_SetUserData(SoftBodyCreationSettings self, ulong value); /// /// /// The collision layer this body belongs to (determines if two objects can collide) /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:58 ///
/// ObjectLayer mObjectLayer = 0 ///
///
/// /// /// @name Collision settings /// /// [LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetObjectLayer")] public static partial ushort SoftBodyCreationSettings_GetObjectLayer(SoftBodyCreationSettings self); /// /// /// The collision layer this body belongs to (determines if two objects can collide) /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:58 ///
/// ObjectLayer mObjectLayer = 0 ///
///
/// /// /// @name Collision settings /// /// [LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetObjectLayer")] public static partial void SoftBodyCreationSettings_SetObjectLayer(SoftBodyCreationSettings self, ushort value); /// /// /// Number of solver iterations /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:61 ///
/// uint32 mNumIterations = 5 ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetNumIterations")] public static partial uint SoftBodyCreationSettings_GetNumIterations(SoftBodyCreationSettings self); /// /// /// Number of solver iterations /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:61 ///
/// uint32 mNumIterations = 5 ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetNumIterations")] public static partial void SoftBodyCreationSettings_SetNumIterations(SoftBodyCreationSettings self, uint value); /// /// /// Linear damping: dv/dt = -mLinearDamping * v. Value should be zero or positive and is usually close /// to 0. /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:62 ///
/// float mLinearDamping = 0.1f ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetLinearDamping")] public static partial float SoftBodyCreationSettings_GetLinearDamping(SoftBodyCreationSettings self); /// /// /// Linear damping: dv/dt = -mLinearDamping * v. Value should be zero or positive and is usually close /// to 0. /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:62 ///
/// float mLinearDamping = 0.1f ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetLinearDamping")] public static partial void SoftBodyCreationSettings_SetLinearDamping(SoftBodyCreationSettings self, float value); /// /// /// Maximum linear velocity that a vertex can reach (m/s) /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:63 ///
/// float mMaxLinearVelocity = 500.0f ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetMaxLinearVelocity")] public static partial float SoftBodyCreationSettings_GetMaxLinearVelocity(SoftBodyCreationSettings self); /// /// /// Maximum linear velocity that a vertex can reach (m/s) /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:63 ///
/// float mMaxLinearVelocity = 500.0f ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetMaxLinearVelocity")] public static partial void SoftBodyCreationSettings_SetMaxLinearVelocity(SoftBodyCreationSettings self, float value); /// /// /// Restitution when colliding /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:64 ///
/// float mRestitution = 0.0f ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetRestitution")] public static partial float SoftBodyCreationSettings_GetRestitution(SoftBodyCreationSettings self); /// /// /// Restitution when colliding /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:64 ///
/// float mRestitution = 0.0f ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetRestitution")] public static partial void SoftBodyCreationSettings_SetRestitution(SoftBodyCreationSettings self, float value); /// /// /// Friction coefficient when colliding /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:65 ///
/// float mFriction = 0.2f ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetFriction")] public static partial float SoftBodyCreationSettings_GetFriction(SoftBodyCreationSettings self); /// /// /// Friction coefficient when colliding /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:65 ///
/// float mFriction = 0.2f ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetFriction")] public static partial void SoftBodyCreationSettings_SetFriction(SoftBodyCreationSettings self, float value); /// /// /// n * R * T, amount of substance * ideal gas constant * absolute temperature, see /// https://en.wikipedia.org/wiki/Pressure /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:66 ///
/// float mPressure = 0.0f ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetPressure")] public static partial float SoftBodyCreationSettings_GetPressure(SoftBodyCreationSettings self); /// /// /// n * R * T, amount of substance * ideal gas constant * absolute temperature, see /// https://en.wikipedia.org/wiki/Pressure /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:66 ///
/// float mPressure = 0.0f ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetPressure")] public static partial void SoftBodyCreationSettings_SetPressure(SoftBodyCreationSettings self, float value); /// /// /// Value to multiply gravity with for this body /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:67 ///
/// float mGravityFactor = 1.0f ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetGravityFactor")] public static partial float SoftBodyCreationSettings_GetGravityFactor(SoftBodyCreationSettings self); /// /// /// Value to multiply gravity with for this body /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:67 ///
/// float mGravityFactor = 1.0f ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetGravityFactor")] public static partial void SoftBodyCreationSettings_SetGravityFactor(SoftBodyCreationSettings self, float value); /// /// /// 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 /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:68 ///
/// float mVertexRadius = 0.0f ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetVertexRadius")] public static partial float SoftBodyCreationSettings_GetVertexRadius(SoftBodyCreationSettings self); /// /// /// 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 /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:68 ///
/// float mVertexRadius = 0.0f ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetVertexRadius")] public static partial void SoftBodyCreationSettings_SetVertexRadius(SoftBodyCreationSettings self, float value); /// /// /// Update the position of the body while simulating (set to false for something that is attached to the /// static world) /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:69 ///
/// bool mUpdatePosition = true ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetUpdatePosition")] public static partial Brutal.Bool8 SoftBodyCreationSettings_GetUpdatePosition(SoftBodyCreationSettings self); /// /// /// Update the position of the body while simulating (set to false for something that is attached to the /// static world) /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:69 ///
/// bool mUpdatePosition = true ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetUpdatePosition")] public static partial void SoftBodyCreationSettings_SetUpdatePosition(SoftBodyCreationSettings self, Brutal.Bool8 value); /// /// /// Bake specified mRotation in the vertices and set the body rotation to identity (simulation is /// slightly more accurate if the rotation of a soft body is kept to identity) /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:70 ///
/// bool mMakeRotationIdentity = true ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetMakeRotationIdentity")] public static partial Brutal.Bool8 SoftBodyCreationSettings_GetMakeRotationIdentity(SoftBodyCreationSettings self); /// /// /// Bake specified mRotation in the vertices and set the body rotation to identity (simulation is /// slightly more accurate if the rotation of a soft body is kept to identity) /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:70 ///
/// bool mMakeRotationIdentity = true ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetMakeRotationIdentity")] public static partial void SoftBodyCreationSettings_SetMakeRotationIdentity(SoftBodyCreationSettings self, Brutal.Bool8 value); /// /// /// If this body can go to sleep or not /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:71 ///
/// bool mAllowSleeping = true ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetAllowSleeping")] public static partial Brutal.Bool8 SoftBodyCreationSettings_GetAllowSleeping(SoftBodyCreationSettings self); /// /// /// If this body can go to sleep or not /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:71 ///
/// bool mAllowSleeping = true ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetAllowSleeping")] public static partial void SoftBodyCreationSettings_SetAllowSleeping(SoftBodyCreationSettings self, Brutal.Bool8 value); /// /// /// 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) /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:72 ///
/// bool mFacesDoubleSided = false ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_GetFacesDoubleSided")] public static partial Brutal.Bool8 SoftBodyCreationSettings_GetFacesDoubleSided(SoftBodyCreationSettings self); /// /// /// 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) /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:72 ///
/// bool mFacesDoubleSided = false ///
///
[LibraryImport("jolt", EntryPoint = "SoftBodyCreationSettings_SetFacesDoubleSided")] public static partial void SoftBodyCreationSettings_SetFacesDoubleSided(SoftBodyCreationSettings self, Brutal.Bool8 value); } } }