mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
674 lines
37 KiB
C#
674 lines
37 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/SoftBodyMotionProperties.h#L34">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:34</see>
|
|
/// <br/>
|
|
/// <c>class SoftBodyMotionProperties : public MotionProperties</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This class contains the runtime information of a soft body.
|
|
///
|
|
/// Based on: XPBD, Extended Position Based Dynamics, Matthias Muller, Ten Minute Physics
|
|
/// See: https://matthias-research.github.io/pages/tenMinutePhysics/09-xpbd.pdf
|
|
/// </code>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct SoftBodyMotionProperties : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L166">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:166</see>
|
|
/// <br/>
|
|
/// <c>enum class EStatus</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Return code for ParallelUpdate
|
|
/// </para>
|
|
/// </remarks>
|
|
[Flags]
|
|
public enum EStatus : int
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// No work was done because other threads were still working on a batch that cannot run concurrently
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L168">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:168</see>
|
|
/// <br/>
|
|
/// <c>NoWork = 1 << 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
NoWork = 1 << 0,
|
|
/// <summary>
|
|
/// <para>
|
|
/// Work was done to progress the update
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L169">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:169</see>
|
|
/// <br/>
|
|
/// <c>DidWork = 1 << 1</c>
|
|
/// </para>
|
|
/// </summary>
|
|
DidWork = 1 << 1,
|
|
/// <summary>
|
|
/// <para>
|
|
/// All work is done
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L170">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:170</see>
|
|
/// <br/>
|
|
/// <c>Done = 1 << 2</c>
|
|
/// </para>
|
|
/// </summary>
|
|
Done = 1 << 2,
|
|
}
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L184">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:184</see>
|
|
/// <br/>
|
|
/// <c>struct LeafShape</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Information about a leaf shape that we're colliding with
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 96)]
|
|
public struct LeafShape
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Transform of the shape relative to the soft body
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L189">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:189</see>
|
|
/// <br/>
|
|
/// <c>Mat44 mTransform</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(0)]
|
|
public float4x4 mTransform;
|
|
/// <summary>
|
|
/// <para>
|
|
/// Scale of the shape
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L190">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:190</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mScale</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(64)]
|
|
public float3 mScale;
|
|
/// <summary>
|
|
/// <para>
|
|
/// Shape
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L191">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:191</see>
|
|
/// <br/>
|
|
/// <c>RefConst<Shape> mShape</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(80)]
|
|
public Shape mShape;
|
|
}
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L229">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:229</see>
|
|
/// <br/>
|
|
/// <c>struct RodState</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Information about the current state of a rod.
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 32)]
|
|
public struct RodState
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Rotation of the rod, relative to center of mass transform
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L231">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:231</see>
|
|
/// <br/>
|
|
/// <c>Quat mRotation</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(0)]
|
|
public floatQuat mRotation;
|
|
}
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L240">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:240</see>
|
|
/// <br/>
|
|
/// <c>struct SkinState</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Information about the state of all skinned vertices
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 48)]
|
|
public struct SkinState
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Previous position of the skinned vertex, used to interpolate between the previous and current
|
|
/// position
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L242">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:242</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mPreviousPosition = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(0)]
|
|
public float3 mPreviousPosition;
|
|
/// <summary>
|
|
/// <para>
|
|
/// Current position of the skinned vertex
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L243">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:243</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mPosition = Vec3::sNaN()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(16)]
|
|
public float3 mPosition;
|
|
/// <summary>
|
|
/// <para>
|
|
/// Normal of the skinned vertex
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L244">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:244</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mNormal = Vec3::sNaN()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(32)]
|
|
public float3 mNormal;
|
|
}
|
|
public static SoftBodyMotionProperties Create() => Jolt.PInvoke.SoftBodyMotionProperties_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L50">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:50</see>
|
|
/// <br/>
|
|
/// <c>void Initialize(const SoftBodyCreationSettings &inSettings)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Initialize the soft body motion properties
|
|
/// </para>
|
|
/// </remarks>
|
|
public void Initialize(SoftBodyCreationSettings settings) => Jolt.PInvoke.SoftBodyMotionProperties_Initialize(this, settings);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L53">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:53</see>
|
|
/// <br/>
|
|
/// <c>const SoftBodySharedSettings * GetSettings() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the shared settings of the soft body
|
|
/// </para>
|
|
/// </remarks>
|
|
public SoftBodySharedSettings GetSettings() => Jolt.PInvoke.SoftBodyMotionProperties_GetSettings(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L64">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:64</see>
|
|
/// <br/>
|
|
/// <c>Quat GetRodRotation(uint inIndex) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Access to the state of rods
|
|
/// </para>
|
|
/// </remarks>
|
|
public floatQuat GetRodRotation(uint index) => Jolt.PInvoke.SoftBodyMotionProperties_GetRodRotation(this, index);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L65">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:65</see>
|
|
/// <br/>
|
|
/// <c>Vec3 GetRodAngularVelocity(uint inIndex) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetRodAngularVelocity(uint index) => Jolt.PInvoke.SoftBodyMotionProperties_GetRodAngularVelocity(this, index);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L77">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:77</see>
|
|
/// <br/>
|
|
/// <c>uint32 GetNumIterations() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the number of solver iterations
|
|
/// </para>
|
|
/// </remarks>
|
|
public uint GetNumIterations() => Jolt.PInvoke.SoftBodyMotionProperties_GetNumIterations(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L78">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:78</see>
|
|
/// <br/>
|
|
/// <c>void SetNumIterations(uint32 inNumIterations)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetNumIterations(uint numIterations) => Jolt.PInvoke.SoftBodyMotionProperties_SetNumIterations(this, numIterations);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L81">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:81</see>
|
|
/// <br/>
|
|
/// <c>float GetPressure() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the pressure of the soft body
|
|
/// </para>
|
|
/// </remarks>
|
|
public float GetPressure() => Jolt.PInvoke.SoftBodyMotionProperties_GetPressure(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L82">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:82</see>
|
|
/// <br/>
|
|
/// <c>void SetPressure(float inPressure)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetPressure(float pressure) => Jolt.PInvoke.SoftBodyMotionProperties_SetPressure(this, pressure);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L85">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:85</see>
|
|
/// <br/>
|
|
/// <c>bool GetUpdatePosition() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Update the position of the body while simulating (set to false for something that is attached to the
|
|
/// static world)
|
|
/// </para>
|
|
/// </remarks>
|
|
public bool GetUpdatePosition() => Jolt.PInvoke.SoftBodyMotionProperties_GetUpdatePosition(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L86">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:86</see>
|
|
/// <br/>
|
|
/// <c>void SetUpdatePosition(bool inUpdatePosition)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetUpdatePosition(bool updatePosition) => Jolt.PInvoke.SoftBodyMotionProperties_SetUpdatePosition(this, updatePosition);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L89">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:89</see>
|
|
/// <br/>
|
|
/// <c>bool GetFacesDoubleSided() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// 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)
|
|
/// </para>
|
|
/// </remarks>
|
|
public bool GetFacesDoubleSided() => Jolt.PInvoke.SoftBodyMotionProperties_GetFacesDoubleSided(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L90">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:90</see>
|
|
/// <br/>
|
|
/// <c>void SetFacesDoubleSided(bool inDoubleSided)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetFacesDoubleSided(bool doubleSided) => Jolt.PInvoke.SoftBodyMotionProperties_SetFacesDoubleSided(this, doubleSided);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L93">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:93</see>
|
|
/// <br/>
|
|
/// <c>bool GetEnableSkinConstraints() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Global setting to turn on/off skin constraints
|
|
/// </para>
|
|
/// </remarks>
|
|
public bool GetEnableSkinConstraints() => Jolt.PInvoke.SoftBodyMotionProperties_GetEnableSkinConstraints(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L94">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:94</see>
|
|
/// <br/>
|
|
/// <c>void SetEnableSkinConstraints(bool inEnableSkinConstraints)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetEnableSkinConstraints(bool enableSkinConstraints) => Jolt.PInvoke.SoftBodyMotionProperties_SetEnableSkinConstraints(this, enableSkinConstraints);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L97">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:97</see>
|
|
/// <br/>
|
|
/// <c>float GetSkinnedMaxDistanceMultiplier() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Multiplier applied to Skinned::mMaxDistance to allow tightening or loosening of the skin constraints. 0
|
|
/// to hard skin all vertices.
|
|
/// </para>
|
|
/// </remarks>
|
|
public float GetSkinnedMaxDistanceMultiplier() => Jolt.PInvoke.SoftBodyMotionProperties_GetSkinnedMaxDistanceMultiplier(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L98">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:98</see>
|
|
/// <br/>
|
|
/// <c>void SetSkinnedMaxDistanceMultiplier(float inSkinnedMaxDistanceMultiplier)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetSkinnedMaxDistanceMultiplier(float skinnedMaxDistanceMultiplier) => Jolt.PInvoke.SoftBodyMotionProperties_SetSkinnedMaxDistanceMultiplier(this, skinnedMaxDistanceMultiplier);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L101">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:101</see>
|
|
/// <br/>
|
|
/// <c>float GetVertexRadius() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// 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
|
|
/// </para>
|
|
/// </remarks>
|
|
public float GetVertexRadius() => Jolt.PInvoke.SoftBodyMotionProperties_GetVertexRadius(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L102">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:102</see>
|
|
/// <br/>
|
|
/// <c>void SetVertexRadius(float inVertexRadius)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetVertexRadius(float vertexRadius) => Jolt.PInvoke.SoftBodyMotionProperties_SetVertexRadius(this, vertexRadius);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L105">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:105</see>
|
|
/// <br/>
|
|
/// <c>const AABox & GetLocalBounds() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get local bounding box
|
|
/// </para>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public AABox GetLocalBounds() => Jolt.PInvoke.SoftBodyMotionProperties_GetLocalBounds(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L108">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:108</see>
|
|
/// <br/>
|
|
/// <c>float GetVolume() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the volume of the soft body. Note can become negative if the shape is inside out!
|
|
/// </para>
|
|
/// </remarks>
|
|
public float GetVolume() => Jolt.PInvoke.SoftBodyMotionProperties_GetVolume(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L111">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:111</see>
|
|
/// <br/>
|
|
/// <c>void CalculateMassAndInertia()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Calculate the total mass and inertia of this body based on the current state of the vertices
|
|
/// </para>
|
|
/// </remarks>
|
|
public void CalculateMassAndInertia() => Jolt.PInvoke.SoftBodyMotionProperties_CalculateMassAndInertia(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L115">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:115</see>
|
|
/// <br/>
|
|
/// <c>void DrawVertices(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Draw the state of a soft body
|
|
/// </para>
|
|
/// </remarks>
|
|
public void DrawVertices(DebugRenderer renderer, float4x4 centerOfMassTransform) => Jolt.PInvoke.SoftBodyMotionProperties_DrawVertices(this, renderer, centerOfMassTransform);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L116">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:116</see>
|
|
/// <br/>
|
|
/// <c>void DrawVertexVelocities(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void DrawVertexVelocities(DebugRenderer renderer, float4x4 centerOfMassTransform) => Jolt.PInvoke.SoftBodyMotionProperties_DrawVertexVelocities(this, renderer, centerOfMassTransform);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L117">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:117</see>
|
|
/// <br/>
|
|
/// <c>void DrawEdgeConstraints(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, ESoftBodyConstraintColor inConstraintColor) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void DrawEdgeConstraints(DebugRenderer renderer, float4x4 centerOfMassTransform, ESoftBodyConstraintColor constraintColor) => Jolt.PInvoke.SoftBodyMotionProperties_DrawEdgeConstraints(this, renderer, centerOfMassTransform, constraintColor);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L118">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:118</see>
|
|
/// <br/>
|
|
/// <c>void DrawRods(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, ESoftBodyConstraintColor inConstraintColor) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void DrawRods(DebugRenderer renderer, float4x4 centerOfMassTransform, ESoftBodyConstraintColor constraintColor) => Jolt.PInvoke.SoftBodyMotionProperties_DrawRods(this, renderer, centerOfMassTransform, constraintColor);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L119">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:119</see>
|
|
/// <br/>
|
|
/// <c>void DrawRodStates(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, ESoftBodyConstraintColor inConstraintColor) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void DrawRodStates(DebugRenderer renderer, float4x4 centerOfMassTransform, ESoftBodyConstraintColor constraintColor) => Jolt.PInvoke.SoftBodyMotionProperties_DrawRodStates(this, renderer, centerOfMassTransform, constraintColor);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L120">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:120</see>
|
|
/// <br/>
|
|
/// <c>void DrawRodBendTwistConstraints(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, ESoftBodyConstraintColor inConstraintColor) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void DrawRodBendTwistConstraints(DebugRenderer renderer, float4x4 centerOfMassTransform, ESoftBodyConstraintColor constraintColor) => Jolt.PInvoke.SoftBodyMotionProperties_DrawRodBendTwistConstraints(this, renderer, centerOfMassTransform, constraintColor);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L121">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:121</see>
|
|
/// <br/>
|
|
/// <c>void DrawBendConstraints(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, ESoftBodyConstraintColor inConstraintColor) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void DrawBendConstraints(DebugRenderer renderer, float4x4 centerOfMassTransform, ESoftBodyConstraintColor constraintColor) => Jolt.PInvoke.SoftBodyMotionProperties_DrawBendConstraints(this, renderer, centerOfMassTransform, constraintColor);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L122">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:122</see>
|
|
/// <br/>
|
|
/// <c>void DrawVolumeConstraints(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, ESoftBodyConstraintColor inConstraintColor) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void DrawVolumeConstraints(DebugRenderer renderer, float4x4 centerOfMassTransform, ESoftBodyConstraintColor constraintColor) => Jolt.PInvoke.SoftBodyMotionProperties_DrawVolumeConstraints(this, renderer, centerOfMassTransform, constraintColor);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L123">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:123</see>
|
|
/// <br/>
|
|
/// <c>void DrawSkinConstraints(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, ESoftBodyConstraintColor inConstraintColor) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void DrawSkinConstraints(DebugRenderer renderer, float4x4 centerOfMassTransform, ESoftBodyConstraintColor constraintColor) => Jolt.PInvoke.SoftBodyMotionProperties_DrawSkinConstraints(this, renderer, centerOfMassTransform, constraintColor);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L124">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:124</see>
|
|
/// <br/>
|
|
/// <c>void DrawLRAConstraints(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, ESoftBodyConstraintColor inConstraintColor) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void DrawLRAConstraints(DebugRenderer renderer, float4x4 centerOfMassTransform, ESoftBodyConstraintColor constraintColor) => Jolt.PInvoke.SoftBodyMotionProperties_DrawLRAConstraints(this, renderer, centerOfMassTransform, constraintColor);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L125">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:125</see>
|
|
/// <br/>
|
|
/// <c>void DrawPredictedBounds(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void DrawPredictedBounds(DebugRenderer renderer, float4x4 centerOfMassTransform) => Jolt.PInvoke.SoftBodyMotionProperties_DrawPredictedBounds(this, renderer, centerOfMassTransform);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L153">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:153</see>
|
|
/// <br/>
|
|
/// <c>void CustomUpdate(float inDeltaTime, Body &ioSoftBody, PhysicsSystem &inSystem)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This function allows you to update the soft body immediately without going through the PhysicsSystem.
|
|
/// This is useful if the soft body is teleported and needs to 'settle' or it can be used if a the soft body
|
|
/// is not added to the PhysicsSystem and needs to be updated manually. One reason for not adding it to the
|
|
/// PhysicsSystem is that you might want to update a soft body immediately after updating an animated object
|
|
/// that has the soft body attached to it. If the soft body is added to the PhysicsSystem it will be updated
|
|
/// by it, so calling this function will effectively update it twice. Note that when you use this function,
|
|
/// only the current thread will be used, whereas if you update through the PhysicsSystem, multiple threads may
|
|
/// be used.
|
|
/// Note that this will bypass any sleep checks. Since the dynamic objects that the soft body touches
|
|
/// will not move during this call, there can be simulation artifacts if you call this function multiple times
|
|
/// without running the physics simulation step.
|
|
/// </code>
|
|
/// </remarks>
|
|
public void CustomUpdate(float deltaTime, Body softBody, PhysicsSystem system) => Jolt.PInvoke.SoftBodyMotionProperties_CustomUpdate(this, deltaTime, softBody, system);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L160">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:160</see>
|
|
/// <br/>
|
|
/// <c>void InitializeUpdateContext(float inDeltaTime, Body &inSoftBody, const PhysicsSystem &inSystem, SoftBodyUpdateContext &ioContext)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Initialize the update context. Not part of the public API.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void InitializeUpdateContext(float deltaTime, Body softBody, PhysicsSystem system, SoftBodyUpdateContext context) => Jolt.PInvoke.SoftBodyMotionProperties_InitializeUpdateContext(this, deltaTime, softBody, system, context);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L163">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:163</see>
|
|
/// <br/>
|
|
/// <c>void DetermineCollidingShapes(const SoftBodyUpdateContext &inContext, const PhysicsSystem &inSystem, const BodyLockInterface &inBodyLockInterface)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Do a broad phase check and collect all bodies that can possibly collide with this soft body. Not part of
|
|
/// the public API.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void DetermineCollidingShapes(SoftBodyUpdateContext context, PhysicsSystem system, BodyLockInterface bodyLockInterface) => Jolt.PInvoke.SoftBodyMotionProperties_DetermineCollidingShapes(this, context, system, bodyLockInterface);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L174">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:174</see>
|
|
/// <br/>
|
|
/// <c>EStatus ParallelUpdate(SoftBodyUpdateContext &ioContext, const PhysicsSettings &inPhysicsSettings)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Update the soft body, will process a batch of work. Not part of the public API.
|
|
/// </para>
|
|
/// </remarks>
|
|
public SoftBodyMotionProperties.EStatus ParallelUpdate(SoftBodyUpdateContext context, ref PhysicsSettings physicsSettings) => Jolt.PInvoke.SoftBodyMotionProperties_ParallelUpdate(this, context, ref physicsSettings);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyMotionProperties.h#L177">Jolt/Physics/SoftBody/SoftBodyMotionProperties.h:177</see>
|
|
/// <br/>
|
|
/// <c>void UpdateRigidBodyVelocities(const SoftBodyUpdateContext &inContext, BodyInterface &inBodyInterface)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Update the velocities of all rigid bodies that we collided with. Not part of the public API.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void UpdateRigidBodyVelocities(SoftBodyUpdateContext context, BodyInterface bodyInterface) => Jolt.PInvoke.SoftBodyMotionProperties_UpdateRigidBodyVelocities(this, context, bodyInterface);
|
|
public static implicit operator MotionProperties(SoftBodyMotionProperties value) => Jolt.PInvoke.SoftBodyMotionProperties_AsMotionProperties(value);
|
|
public void Dispose() => Jolt.PInvoke.SoftBodyMotionProperties_Destroy(this);
|
|
}
|
|
}
|