//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// 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.
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyContactListener.h:21
///
/// class SoftBodyContactSettings
///
///
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct SoftBodyContactSettings
{
///
///
/// 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
///
///
[FieldOffset(0)]
public float InvMassScale1;
///
///
/// 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
///
///
[FieldOffset(4)]
public float InvMassScale2;
///
///
/// 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
///
///
[FieldOffset(8)]
public float InvInertiaScale2;
///
///
/// If the contact should be treated as a sensor vs body contact (no collision response)
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyContactListener.h:27
///
/// bool mIsSensor
///
///
[FieldOffset(12)]
public Brutal.Bool8 IsSensor;
}
}