mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
513 lines
26 KiB
C#
513 lines
26 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/SoftBodyCreationSettings.h#L17">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:17</see>
|
|
/// <br/>
|
|
/// <c>class SoftBodyCreationSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This class contains the information needed to create a soft body object
|
|
/// Note: Soft bodies are still in development and come with several caveats. Read the Architecture and API documentation for more information!
|
|
/// </code>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct SoftBodyCreationSettings : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L23">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:23</see>
|
|
/// <br/>
|
|
/// <c>SoftBodyCreationSettings() = default</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// </remarks>
|
|
public static SoftBodyCreationSettings Create() => Jolt.PInvoke.SoftBodyCreationSettings_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L24">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:24</see>
|
|
/// <br/>
|
|
/// <c>SoftBodyCreationSettings(const SoftBodySharedSettings *inSettings, RVec3Arg inPosition, QuatArg inRotation, ObjectLayer inObjectLayer)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static SoftBodyCreationSettings Create(SoftBodySharedSettings settings, float3 position, floatQuat rotation, ushort objectLayer) => Jolt.PInvoke.SoftBodyCreationSettings_Create_2(settings, position, rotation, objectLayer);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L27">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:27</see>
|
|
/// <br/>
|
|
/// <c>void SaveBinaryState(StreamOut &inStream) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Saves the state of this object in binary form to inStream. Doesn't store the shared settings nor the
|
|
/// group filter.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.SoftBodyCreationSettings_SaveBinaryState(this, stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L30">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:30</see>
|
|
/// <br/>
|
|
/// <c>void RestoreBinaryState(StreamIn &inStream)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Restore the state of this object from inStream. Doesn't restore the shared settings nor the group
|
|
/// filter.
|
|
/// </para>
|
|
/// </remarks>
|
|
public void RestoreBinaryState(StreamIn stream) => Jolt.PInvoke.SoftBodyCreationSettings_RestoreBinaryState(this, stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Defines the configuration of this soft body
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L49">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:49</see>
|
|
/// <br/>
|
|
/// <c>RefConst<SoftBodySharedSettings> mSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public SoftBodySharedSettings GetSettings() => Jolt.PInvoke.SoftBodyCreationSettings_GetSettings(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Defines the configuration of this soft body
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L49">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:49</see>
|
|
/// <br/>
|
|
/// <c>RefConst<SoftBodySharedSettings> mSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetSettings(SoftBodySharedSettings value) => Jolt.PInvoke.SoftBodyCreationSettings_SetSettings(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Initial position of the soft body
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L51">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:51</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mPosition { RVec3::sZero() }</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetPosition() => Jolt.PInvoke.SoftBodyCreationSettings_GetPosition(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Initial position of the soft body
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L51">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:51</see>
|
|
/// <br/>
|
|
/// <c>RVec3 mPosition { RVec3::sZero() }</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetPosition(float3 value) => Jolt.PInvoke.SoftBodyCreationSettings_SetPosition(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Initial rotation of the soft body
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L52">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:52</see>
|
|
/// <br/>
|
|
/// <c>Quat mRotation { Quat::sIdentity() }</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public floatQuat GetRotation() => Jolt.PInvoke.SoftBodyCreationSettings_GetRotation(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Initial rotation of the soft body
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L52">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:52</see>
|
|
/// <br/>
|
|
/// <c>Quat mRotation { Quat::sIdentity() }</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetRotation(floatQuat value) => Jolt.PInvoke.SoftBodyCreationSettings_SetRotation(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L55">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:55</see>
|
|
/// <br/>
|
|
/// <c>uint64 mUserData = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// User data value (can be used by application)
|
|
/// </para>
|
|
/// </remarks>
|
|
public ulong GetUserData() => Jolt.PInvoke.SoftBodyCreationSettings_GetUserData(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L55">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:55</see>
|
|
/// <br/>
|
|
/// <c>uint64 mUserData = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// User data value (can be used by application)
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetUserData(ulong value) => Jolt.PInvoke.SoftBodyCreationSettings_SetUserData(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// The collision layer this body belongs to (determines if two objects can collide)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L58">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:58</see>
|
|
/// <br/>
|
|
/// <c>ObjectLayer mObjectLayer = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Collision settings
|
|
/// </para>
|
|
/// </remarks>
|
|
public ushort GetObjectLayer() => Jolt.PInvoke.SoftBodyCreationSettings_GetObjectLayer(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// The collision layer this body belongs to (determines if two objects can collide)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L58">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:58</see>
|
|
/// <br/>
|
|
/// <c>ObjectLayer mObjectLayer = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Collision settings
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetObjectLayer(ushort value) => Jolt.PInvoke.SoftBodyCreationSettings_SetObjectLayer(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Number of solver iterations
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L61">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:61</see>
|
|
/// <br/>
|
|
/// <c>uint32 mNumIterations = 5</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetNumIterations() => Jolt.PInvoke.SoftBodyCreationSettings_GetNumIterations(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Number of solver iterations
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L61">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:61</see>
|
|
/// <br/>
|
|
/// <c>uint32 mNumIterations = 5</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetNumIterations(uint value) => Jolt.PInvoke.SoftBodyCreationSettings_SetNumIterations(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Linear damping: dv/dt = -mLinearDamping * v. Value should be zero or positive and is usually close to 0.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L62">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:62</see>
|
|
/// <br/>
|
|
/// <c>float mLinearDamping = 0.1f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetLinearDamping() => Jolt.PInvoke.SoftBodyCreationSettings_GetLinearDamping(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Linear damping: dv/dt = -mLinearDamping * v. Value should be zero or positive and is usually close to 0.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L62">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:62</see>
|
|
/// <br/>
|
|
/// <c>float mLinearDamping = 0.1f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetLinearDamping(float value) => Jolt.PInvoke.SoftBodyCreationSettings_SetLinearDamping(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum linear velocity that a vertex can reach (m/s)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L63">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:63</see>
|
|
/// <br/>
|
|
/// <c>float mMaxLinearVelocity = 500.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMaxLinearVelocity() => Jolt.PInvoke.SoftBodyCreationSettings_GetMaxLinearVelocity(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum linear velocity that a vertex can reach (m/s)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L63">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:63</see>
|
|
/// <br/>
|
|
/// <c>float mMaxLinearVelocity = 500.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxLinearVelocity(float value) => Jolt.PInvoke.SoftBodyCreationSettings_SetMaxLinearVelocity(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Restitution when colliding
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L64">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:64</see>
|
|
/// <br/>
|
|
/// <c>float mRestitution = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetRestitution() => Jolt.PInvoke.SoftBodyCreationSettings_GetRestitution(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Restitution when colliding
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L64">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:64</see>
|
|
/// <br/>
|
|
/// <c>float mRestitution = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetRestitution(float value) => Jolt.PInvoke.SoftBodyCreationSettings_SetRestitution(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Friction coefficient when colliding
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L65">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:65</see>
|
|
/// <br/>
|
|
/// <c>float mFriction = 0.2f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetFriction() => Jolt.PInvoke.SoftBodyCreationSettings_GetFriction(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Friction coefficient when colliding
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L65">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:65</see>
|
|
/// <br/>
|
|
/// <c>float mFriction = 0.2f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetFriction(float value) => Jolt.PInvoke.SoftBodyCreationSettings_SetFriction(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// n * R * T, amount of substance * ideal gas constant * absolute temperature, see
|
|
/// https://en.wikipedia.org/wiki/Pressure
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L66">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:66</see>
|
|
/// <br/>
|
|
/// <c>float mPressure = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetPressure() => Jolt.PInvoke.SoftBodyCreationSettings_GetPressure(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// n * R * T, amount of substance * ideal gas constant * absolute temperature, see
|
|
/// https://en.wikipedia.org/wiki/Pressure
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L66">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:66</see>
|
|
/// <br/>
|
|
/// <c>float mPressure = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetPressure(float value) => Jolt.PInvoke.SoftBodyCreationSettings_SetPressure(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Value to multiply gravity with for this body
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L67">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:67</see>
|
|
/// <br/>
|
|
/// <c>float mGravityFactor = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetGravityFactor() => Jolt.PInvoke.SoftBodyCreationSettings_GetGravityFactor(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Value to multiply gravity with for this body
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L67">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:67</see>
|
|
/// <br/>
|
|
/// <c>float mGravityFactor = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetGravityFactor(float value) => Jolt.PInvoke.SoftBodyCreationSettings_SetGravityFactor(this, value);
|
|
/// <summary>
|
|
/// <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>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L68">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:68</see>
|
|
/// <br/>
|
|
/// <c>float mVertexRadius = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetVertexRadius() => Jolt.PInvoke.SoftBodyCreationSettings_GetVertexRadius(this);
|
|
/// <summary>
|
|
/// <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>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L68">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:68</see>
|
|
/// <br/>
|
|
/// <c>float mVertexRadius = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetVertexRadius(float value) => Jolt.PInvoke.SoftBodyCreationSettings_SetVertexRadius(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Update the position of the body while simulating (set to false for something that is attached to the
|
|
/// static world)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L69">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:69</see>
|
|
/// <br/>
|
|
/// <c>bool mUpdatePosition = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public bool GetUpdatePosition() => Jolt.PInvoke.SoftBodyCreationSettings_GetUpdatePosition(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Update the position of the body while simulating (set to false for something that is attached to the
|
|
/// static world)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L69">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:69</see>
|
|
/// <br/>
|
|
/// <c>bool mUpdatePosition = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetUpdatePosition(bool value) => Jolt.PInvoke.SoftBodyCreationSettings_SetUpdatePosition(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Bake specified mRotation in the vertices and set the body rotation to identity (simulation is slightly
|
|
/// more accurate if the rotation of a soft body is kept to identity)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L70">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:70</see>
|
|
/// <br/>
|
|
/// <c>bool mMakeRotationIdentity = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public bool GetMakeRotationIdentity() => Jolt.PInvoke.SoftBodyCreationSettings_GetMakeRotationIdentity(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Bake specified mRotation in the vertices and set the body rotation to identity (simulation is slightly
|
|
/// more accurate if the rotation of a soft body is kept to identity)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L70">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:70</see>
|
|
/// <br/>
|
|
/// <c>bool mMakeRotationIdentity = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMakeRotationIdentity(bool value) => Jolt.PInvoke.SoftBodyCreationSettings_SetMakeRotationIdentity(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// If this body can go to sleep or not
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L71">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:71</see>
|
|
/// <br/>
|
|
/// <c>bool mAllowSleeping = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public bool GetAllowSleeping() => Jolt.PInvoke.SoftBodyCreationSettings_GetAllowSleeping(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// If this body can go to sleep or not
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L71">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:71</see>
|
|
/// <br/>
|
|
/// <c>bool mAllowSleeping = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetAllowSleeping(bool value) => Jolt.PInvoke.SoftBodyCreationSettings_SetAllowSleeping(this, value);
|
|
/// <summary>
|
|
/// <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>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L72">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:72</see>
|
|
/// <br/>
|
|
/// <c>bool mFacesDoubleSided = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public bool GetFacesDoubleSided() => Jolt.PInvoke.SoftBodyCreationSettings_GetFacesDoubleSided(this);
|
|
/// <summary>
|
|
/// <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>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L72">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:72</see>
|
|
/// <br/>
|
|
/// <c>bool mFacesDoubleSided = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetFacesDoubleSided(bool value) => Jolt.PInvoke.SoftBodyCreationSettings_SetFacesDoubleSided(this, value);
|
|
public void Dispose() => Jolt.PInvoke.SoftBodyCreationSettings_Destroy(this);
|
|
}
|
|
}
|