mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 14:08:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
677
Brutal.Jolt/Generated/Classes/SoftBodyCreationSettings.gen.cs
Normal file
677
Brutal.Jolt/Generated/Classes/SoftBodyCreationSettings.gen.cs
Normal file
|
|
@ -0,0 +1,677 @@
|
|||
// <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>
|
||||
/// 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!
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L17">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:17</see>
|
||||
/// <br/>
|
||||
/// <c>class SoftBodyCreationSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct SoftBodyCreationSettings : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Constructor
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L23">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:23</see>
|
||||
/// <br/>
|
||||
/// <c>SoftBodyCreationSettings() = default</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static SoftBodyCreationSettings Create() => Jolt.PInvoke.SoftBodyCreationSettings_Create();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
||||
/// Saves the state of this object in binary form to inStream. Doesn't store the shared settings nor the
|
||||
/// group filter.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L27">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:27</see>
|
||||
/// <br/>
|
||||
/// <c>void SaveBinaryState(StreamOut &inStream) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SaveBinaryState(StreamOut stream) =>
|
||||
Jolt.PInvoke.SoftBodyCreationSettings_SaveBinaryState(this, stream);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Restore the state of this object from inStream. Doesn't restore the shared settings nor the group
|
||||
/// filter.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L30">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>void RestoreBinaryState(StreamIn &inStream)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void RestoreBinaryState(StreamIn stream) =>
|
||||
Jolt.PInvoke.SoftBodyCreationSettings_RestoreBinaryState(this, stream);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Save this body creation settings, its shared settings and group filter. Pass in an empty map in
|
||||
/// ioSharedSettingsMap / ioMaterialMap / ioGroupFilterMap or reuse the same map while saving multiple
|
||||
/// shapes to the same stream in order to avoid writing duplicates. Pass nullptr to ioSharedSettingsMap and
|
||||
/// ioMaterial map to skip saving shared settings and materials Pass nullptr to ioGroupFilterMap to skip
|
||||
/// saving group filters
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L42">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:42</see>
|
||||
/// <br/>
|
||||
/// <c>void SaveWithChildren(StreamOut &inStream, SharedSettingsToIDMap *ioSharedSettingsMap, MaterialToIDMap *ioMaterialMap, GroupFilterToIDMap *ioGroupFilterMap) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// A null sharedSettingsMap leaves the objects it covers out of the stream: Jolt writes them as null (a
|
||||
/// body's shape needs both its shape and material maps).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// A null materialMap leaves the objects it covers out of the stream: Jolt writes them as null (a body's
|
||||
/// shape needs both its shape and material maps).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// A null groupFilterMap leaves the objects it covers out of the stream: Jolt writes them as null (a body's
|
||||
/// shape needs both its shape and material maps).
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SaveWithChildren(
|
||||
StreamOut stream,
|
||||
SharedSettingsToIDMap sharedSettingsMap,
|
||||
MaterialToIDMap materialMap,
|
||||
GroupFilterToIDMap groupFilterMap
|
||||
) =>
|
||||
Jolt.PInvoke.SoftBodyCreationSettings_SaveWithChildren(
|
||||
this,
|
||||
stream,
|
||||
sharedSettingsMap,
|
||||
materialMap,
|
||||
groupFilterMap
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Restore a shape, all its children and materials. Pass in an empty map in ioSharedSettingsMap /
|
||||
/// ioMaterialMap / ioGroupFilterMap or reuse the same map while reading multiple shapes from the same
|
||||
/// stream in order to restore duplicates.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L47">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:47</see>
|
||||
/// <br/>
|
||||
/// <c>static SBCSResult sRestoreWithChildren(StreamIn &inStream, IDToSharedSettingsMap &ioSharedSettingsMap, IDToMaterialMap &ioMaterialMap, IDToGroupFilterMap &ioGroupFilterMap)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Throws JoltException with Jolt's error message when the operation fails. The returned handle is an owned
|
||||
/// copy; Dispose it when you're done with it.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static SoftBodyCreationSettings RestoreWithChildren(
|
||||
StreamIn stream,
|
||||
IDToSharedSettingsMap sharedSettingsMap,
|
||||
IDToMaterialMap materialMap,
|
||||
IDToGroupFilterMap groupFilterMap
|
||||
)
|
||||
{
|
||||
var _handle = Jolt.PInvoke.SoftBodyCreationSettings_RestoreWithChildren(
|
||||
stream,
|
||||
sharedSettingsMap,
|
||||
materialMap,
|
||||
groupFilterMap
|
||||
);
|
||||
if (_handle.IsNull())
|
||||
throw JoltException.FromLastError();
|
||||
return _handle;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Defines the configuration of this soft body
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L49">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:49</see>
|
||||
/// <br/>
|
||||
/// <c>RefConst<SoftBodySharedSettings> mSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The returned handle carries its own reference; Dispose it once when you're done.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
||||
/// User data value (can be used by application)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L55">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:55</see>
|
||||
/// <br/>
|
||||
/// <c>uint64 mUserData = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public ulong GetUserData() => Jolt.PInvoke.SoftBodyCreationSettings_GetUserData(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// User data value (can be used by application)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L55">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:55</see>
|
||||
/// <br/>
|
||||
/// <c>uint64 mUserData = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
||||
/// The collision group this body belongs to (determines if two objects can collide)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L59">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:59</see>
|
||||
/// <br/>
|
||||
/// <c>CollisionGroup mCollisionGroup</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The returned handle is an owned copy; Dispose it when you're done with it.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public CollisionGroup GetCollisionGroup() => Jolt.PInvoke.SoftBodyCreationSettings_GetCollisionGroup(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// The collision group this body belongs to (determines if two objects can collide)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodyCreationSettings.h#L59">Jolt/Physics/SoftBody/SoftBodyCreationSettings.h:59</see>
|
||||
/// <br/>
|
||||
/// <c>CollisionGroup mCollisionGroup</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The value is copied into the field; the handle you pass stays yours to Dispose.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SetCollisionGroup(CollisionGroup value) =>
|
||||
Jolt.PInvoke.SoftBodyCreationSettings_SetCollisionGroup(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Number of solver iterations
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue