mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
129 lines
6.8 KiB
C#
129 lines
6.8 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using Brutal.Interop;
|
|
using Brutal.Numerics;
|
|
namespace Brutal.JoltApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyContactListener.h#L21">Jolt/Physics/SoftBody/SoftBodyContactListener.h:21</see>
|
|
/// <br/>
|
|
/// <c>class SoftBodyContactSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct SoftBodyContactSettings : IDisposable
|
|
{
|
|
public static SoftBodyContactSettings Create() => Jolt.PInvoke.SoftBodyContactSettings_Create();
|
|
/// <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/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyContactListener.h#L24">Jolt/Physics/SoftBody/SoftBodyContactListener.h:24</see>
|
|
/// <br/>
|
|
/// <c>float mInvMassScale1 = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetInvMassScale1() => Jolt.PInvoke.SoftBodyContactSettings_GetInvMassScale1(this);
|
|
/// <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/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyContactListener.h#L24">Jolt/Physics/SoftBody/SoftBodyContactListener.h:24</see>
|
|
/// <br/>
|
|
/// <c>float mInvMassScale1 = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetInvMassScale1(float value) => Jolt.PInvoke.SoftBodyContactSettings_SetInvMassScale1(this, value);
|
|
/// <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/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyContactListener.h#L25">Jolt/Physics/SoftBody/SoftBodyContactListener.h:25</see>
|
|
/// <br/>
|
|
/// <c>float mInvMassScale2 = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetInvMassScale2() => Jolt.PInvoke.SoftBodyContactSettings_GetInvMassScale2(this);
|
|
/// <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/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyContactListener.h#L25">Jolt/Physics/SoftBody/SoftBodyContactListener.h:25</see>
|
|
/// <br/>
|
|
/// <c>float mInvMassScale2 = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetInvMassScale2(float value) => Jolt.PInvoke.SoftBodyContactSettings_SetInvMassScale2(this, value);
|
|
/// <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/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyContactListener.h#L26">Jolt/Physics/SoftBody/SoftBodyContactListener.h:26</see>
|
|
/// <br/>
|
|
/// <c>float mInvInertiaScale2 = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetInvInertiaScale2() => Jolt.PInvoke.SoftBodyContactSettings_GetInvInertiaScale2(this);
|
|
/// <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/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyContactListener.h#L26">Jolt/Physics/SoftBody/SoftBodyContactListener.h:26</see>
|
|
/// <br/>
|
|
/// <c>float mInvInertiaScale2 = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetInvInertiaScale2(float value) => Jolt.PInvoke.SoftBodyContactSettings_SetInvInertiaScale2(this, value);
|
|
/// <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/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyContactListener.h#L27">Jolt/Physics/SoftBody/SoftBodyContactListener.h:27</see>
|
|
/// <br/>
|
|
/// <c>bool mIsSensor</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public bool GetIsSensor() => Jolt.PInvoke.SoftBodyContactSettings_GetIsSensor(this);
|
|
/// <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/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyContactListener.h#L27">Jolt/Physics/SoftBody/SoftBodyContactListener.h:27</see>
|
|
/// <br/>
|
|
/// <c>bool mIsSensor</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetIsSensor(bool value) => Jolt.PInvoke.SoftBodyContactSettings_SetIsSensor(this, value);
|
|
public void Dispose() => Jolt.PInvoke.SoftBodyContactSettings_Destroy(this);
|
|
}
|
|
}
|