brutal/Brutal.Jolt/Generated/Structs/SoftBodyContactSettings.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

84 lines
3.6 KiB
C#

// <auto-generated/>
// 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
{
/// <summary>
/// <para>
/// 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.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodyContactListener.h#L21">Jolt/Physics/SoftBody/SoftBodyContactListener.h:21</see>
/// <br/>
/// <c>class SoftBodyContactSettings</c>
/// </para>
/// </summary>
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct SoftBodyContactSettings
{
/// <summary>
/// <para>
/// 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.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodyContactListener.h#L24">Jolt/Physics/SoftBody/SoftBodyContactListener.h:24</see>
/// <br/>
/// <c>float mInvMassScale1 = 1.0f</c>
/// </para>
/// </summary>
[FieldOffset(0)]
public float InvMassScale1;
/// <summary>
/// <para>
/// 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.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodyContactListener.h#L25">Jolt/Physics/SoftBody/SoftBodyContactListener.h:25</see>
/// <br/>
/// <c>float mInvMassScale2 = 1.0f</c>
/// </para>
/// </summary>
[FieldOffset(4)]
public float InvMassScale2;
/// <summary>
/// <para>
/// Scale factor for the inverse inertia of the other body (usually same as mInvMassScale2)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodyContactListener.h#L26">Jolt/Physics/SoftBody/SoftBodyContactListener.h:26</see>
/// <br/>
/// <c>float mInvInertiaScale2 = 1.0f</c>
/// </para>
/// </summary>
[FieldOffset(8)]
public float InvInertiaScale2;
/// <summary>
/// <para>
/// If the contact should be treated as a sensor vs body contact (no collision response)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodyContactListener.h#L27">Jolt/Physics/SoftBody/SoftBodyContactListener.h:27</see>
/// <br/>
/// <c>bool mIsSensor</c>
/// </para>
/// </summary>
[FieldOffset(12)]
public Brutal.Bool8 IsSensor;
}
}