// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyContactListener.h:21 ///
/// class SoftBodyContactSettings ///
///
/// /// /// Contact settings for a soft body contact. /// The values are filled in with their defaults by the system so the callback doesn't need to modify anything, but it can if it wants to. /// /// [InteropHandle] public readonly partial struct SoftBodyContactSettings : IDisposable { public static SoftBodyContactSettings Create() => Jolt.PInvoke.SoftBodyContactSettings_Create(); /// /// /// Scale factor for the inverse mass of the soft body (0 = infinite mass, 1 = use original mass, 2 = body /// has half the mass). For the same contact pair, you should strive to keep the value the same over time. /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyContactListener.h:24 ///
/// float mInvMassScale1 = 1.0f ///
///
public float GetInvMassScale1() => Jolt.PInvoke.SoftBodyContactSettings_GetInvMassScale1(this); /// /// /// Scale factor for the inverse mass of the soft body (0 = infinite mass, 1 = use original mass, 2 = body /// has half the mass). For the same contact pair, you should strive to keep the value the same over time. /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyContactListener.h:24 ///
/// float mInvMassScale1 = 1.0f ///
///
public void SetInvMassScale1(float value) => Jolt.PInvoke.SoftBodyContactSettings_SetInvMassScale1(this, value); /// /// /// Scale factor for the inverse mass of the other body (0 = infinite mass, 1 = use original mass, 2 = body /// has half the mass). For the same contact pair, you should strive to keep the value the same over time. /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyContactListener.h:25 ///
/// float mInvMassScale2 = 1.0f ///
///
public float GetInvMassScale2() => Jolt.PInvoke.SoftBodyContactSettings_GetInvMassScale2(this); /// /// /// Scale factor for the inverse mass of the other body (0 = infinite mass, 1 = use original mass, 2 = body /// has half the mass). For the same contact pair, you should strive to keep the value the same over time. /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyContactListener.h:25 ///
/// float mInvMassScale2 = 1.0f ///
///
public void SetInvMassScale2(float value) => Jolt.PInvoke.SoftBodyContactSettings_SetInvMassScale2(this, value); /// /// /// Scale factor for the inverse inertia of the other body (usually same as mInvMassScale2) /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyContactListener.h:26 ///
/// float mInvInertiaScale2 = 1.0f ///
///
public float GetInvInertiaScale2() => Jolt.PInvoke.SoftBodyContactSettings_GetInvInertiaScale2(this); /// /// /// Scale factor for the inverse inertia of the other body (usually same as mInvMassScale2) /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyContactListener.h:26 ///
/// float mInvInertiaScale2 = 1.0f ///
///
public void SetInvInertiaScale2(float value) => Jolt.PInvoke.SoftBodyContactSettings_SetInvInertiaScale2(this, value); /// /// /// If the contact should be treated as a sensor vs body contact (no collision response) /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyContactListener.h:27 ///
/// bool mIsSensor ///
///
public bool GetIsSensor() => Jolt.PInvoke.SoftBodyContactSettings_GetIsSensor(this); /// /// /// If the contact should be treated as a sensor vs body contact (no collision response) /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyContactListener.h:27 ///
/// bool mIsSensor ///
///
public void SetIsSensor(bool value) => Jolt.PInvoke.SoftBodyContactSettings_SetIsSensor(this, value); public void Dispose() => Jolt.PInvoke.SoftBodyContactSettings_Destroy(this); } }