brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/MotionProperties.gen.cs
2026-10-15 14:12:02 +13:00

786 lines
40 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/Body/MotionProperties.h#L28">Jolt/Physics/Body/MotionProperties.h:28</see>
/// <br/>
/// <c>class MotionProperties</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The Body class only keeps track of state for static bodies, the MotionProperties class keeps the additional
/// state needed for a moving Body. It has a 1-on-1 relationship with the body.
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct MotionProperties
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L34">Jolt/Physics/Body/MotionProperties.h:34</see>
/// <br/>
/// <c>EMotionQuality GetMotionQuality() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Motion quality, or how well it detects collisions when it has a high velocity
/// </para>
/// </remarks>
public EMotionQuality GetMotionQuality() => Jolt.PInvoke.MotionProperties_GetMotionQuality(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L37">Jolt/Physics/Body/MotionProperties.h:37</see>
/// <br/>
/// <c>inline EAllowedDOFs GetAllowedDOFs() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the allowed degrees of freedom that this body has (this can be changed by calling SetMassProperties)
/// </para>
/// </remarks>
public EAllowedDOFs GetAllowedDOFs() => Jolt.PInvoke.MotionProperties_GetAllowedDOFs(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L40">Jolt/Physics/Body/MotionProperties.h:40</see>
/// <br/>
/// <c>inline bool GetAllowSleeping() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// If this body can go to sleep.
/// </para>
/// </remarks>
public bool GetAllowSleeping() => Jolt.PInvoke.MotionProperties_GetAllowSleeping(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L43">Jolt/Physics/Body/MotionProperties.h:43</see>
/// <br/>
/// <c>inline Vec3 GetLinearVelocity() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get world space linear velocity of the center of mass
/// </para>
/// </remarks>
public float3 GetLinearVelocity() => Jolt.PInvoke.MotionProperties_GetLinearVelocity(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L46">Jolt/Physics/Body/MotionProperties.h:46</see>
/// <br/>
/// <c>void SetLinearVelocity(Vec3Arg inLinearVelocity)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Set world space linear velocity of the center of mass
/// </para>
/// </remarks>
public void SetLinearVelocity(float3 linearVelocity) => Jolt.PInvoke.MotionProperties_SetLinearVelocity(this, linearVelocity);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L49">Jolt/Physics/Body/MotionProperties.h:49</see>
/// <br/>
/// <c>void SetLinearVelocityClamped(Vec3Arg inLinearVelocity)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Set world space linear velocity of the center of mass, will make sure the value is clamped against the
/// maximum linear velocity
/// </para>
/// </remarks>
public void SetLinearVelocityClamped(float3 linearVelocity) => Jolt.PInvoke.MotionProperties_SetLinearVelocityClamped(this, linearVelocity);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L52">Jolt/Physics/Body/MotionProperties.h:52</see>
/// <br/>
/// <c>inline Vec3 GetAngularVelocity() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get world space angular velocity of the center of mass
/// </para>
/// </remarks>
public float3 GetAngularVelocity() => Jolt.PInvoke.MotionProperties_GetAngularVelocity(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L55">Jolt/Physics/Body/MotionProperties.h:55</see>
/// <br/>
/// <c>void SetAngularVelocity(Vec3Arg inAngularVelocity)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Set world space angular velocity of the center of mass
/// </para>
/// </remarks>
public void SetAngularVelocity(float3 angularVelocity) => Jolt.PInvoke.MotionProperties_SetAngularVelocity(this, angularVelocity);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L58">Jolt/Physics/Body/MotionProperties.h:58</see>
/// <br/>
/// <c>void SetAngularVelocityClamped(Vec3Arg inAngularVelocity)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Set world space angular velocity of the center of mass, will make sure the value is clamped against the
/// maximum angular velocity
/// </para>
/// </remarks>
public void SetAngularVelocityClamped(float3 angularVelocity) => Jolt.PInvoke.MotionProperties_SetAngularVelocityClamped(this, angularVelocity);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L61">Jolt/Physics/Body/MotionProperties.h:61</see>
/// <br/>
/// <c>inline void MoveKinematic(Vec3Arg inDeltaPosition, QuatArg inDeltaRotation, float inDeltaTime)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Set velocity of body such that it will be rotate/translate by inDeltaPosition/Rotation in inDeltaTime
/// seconds.
/// </para>
/// </remarks>
public void MoveKinematic(float3 deltaPosition, floatQuat deltaRotation, float deltaTime) => Jolt.PInvoke.MotionProperties_MoveKinematic(this, deltaPosition, deltaRotation, deltaTime);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L67">Jolt/Physics/Body/MotionProperties.h:67</see>
/// <br/>
/// <c>inline float GetMaxLinearVelocity() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Maximum linear velocity that a body can achieve. Used to prevent the system from exploding.
/// </para>
/// </remarks>
public float GetMaxLinearVelocity() => Jolt.PInvoke.MotionProperties_GetMaxLinearVelocity(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L68">Jolt/Physics/Body/MotionProperties.h:68</see>
/// <br/>
/// <c>inline void SetMaxLinearVelocity(float inLinearVelocity)</c>
/// </para>
/// </summary>
public void SetMaxLinearVelocity(float linearVelocity) => Jolt.PInvoke.MotionProperties_SetMaxLinearVelocity(this, linearVelocity);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L71">Jolt/Physics/Body/MotionProperties.h:71</see>
/// <br/>
/// <c>inline float GetMaxAngularVelocity() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Maximum angular velocity that a body can achieve. Used to prevent the system from exploding.
/// </para>
/// </remarks>
public float GetMaxAngularVelocity() => Jolt.PInvoke.MotionProperties_GetMaxAngularVelocity(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L72">Jolt/Physics/Body/MotionProperties.h:72</see>
/// <br/>
/// <c>inline void SetMaxAngularVelocity(float inAngularVelocity)</c>
/// </para>
/// </summary>
public void SetMaxAngularVelocity(float angularVelocity) => Jolt.PInvoke.MotionProperties_SetMaxAngularVelocity(this, angularVelocity);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L76">Jolt/Physics/Body/MotionProperties.h:76</see>
/// <br/>
/// <c>inline void ClampLinearVelocity()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Clamp velocity according to limit
/// </para>
/// </remarks>
public void ClampLinearVelocity() => Jolt.PInvoke.MotionProperties_ClampLinearVelocity(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L77">Jolt/Physics/Body/MotionProperties.h:77</see>
/// <br/>
/// <c>inline void ClampAngularVelocity()</c>
/// </para>
/// </summary>
public void ClampAngularVelocity() => Jolt.PInvoke.MotionProperties_ClampAngularVelocity(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L80">Jolt/Physics/Body/MotionProperties.h:80</see>
/// <br/>
/// <c>inline float GetLinearDamping() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get linear damping: dv/dt = -c * v. c. Value should be zero or positive and is usually close to 0.
/// </para>
/// </remarks>
public float GetLinearDamping() => Jolt.PInvoke.MotionProperties_GetLinearDamping(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L81">Jolt/Physics/Body/MotionProperties.h:81</see>
/// <br/>
/// <c>void SetLinearDamping(float inLinearDamping)</c>
/// </para>
/// </summary>
public void SetLinearDamping(float linearDamping) => Jolt.PInvoke.MotionProperties_SetLinearDamping(this, linearDamping);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L84">Jolt/Physics/Body/MotionProperties.h:84</see>
/// <br/>
/// <c>inline float GetAngularDamping() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get angular damping: dw/dt = -c * w. c. Value should be zero or positive and is usually close to 0.
/// </para>
/// </remarks>
public float GetAngularDamping() => Jolt.PInvoke.MotionProperties_GetAngularDamping(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L85">Jolt/Physics/Body/MotionProperties.h:85</see>
/// <br/>
/// <c>void SetAngularDamping(float inAngularDamping)</c>
/// </para>
/// </summary>
public void SetAngularDamping(float angularDamping) => Jolt.PInvoke.MotionProperties_SetAngularDamping(this, angularDamping);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L88">Jolt/Physics/Body/MotionProperties.h:88</see>
/// <br/>
/// <c>inline float GetGravityFactor() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get gravity factor (1 = normal gravity, 0 = no gravity)
/// </para>
/// </remarks>
public float GetGravityFactor() => Jolt.PInvoke.MotionProperties_GetGravityFactor(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L89">Jolt/Physics/Body/MotionProperties.h:89</see>
/// <br/>
/// <c>void SetGravityFactor(float inGravityFactor)</c>
/// </para>
/// </summary>
public void SetGravityFactor(float gravityFactor) => Jolt.PInvoke.MotionProperties_SetGravityFactor(this, gravityFactor);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L92">Jolt/Physics/Body/MotionProperties.h:92</see>
/// <br/>
/// <c>void SetMassProperties(EAllowedDOFs inAllowedDOFs, const MassProperties &amp;inMassProperties)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Set the mass and inertia tensor
/// </para>
/// </remarks>
public void SetMassProperties(EAllowedDOFs allowedDOFs, MassProperties massProperties) => Jolt.PInvoke.MotionProperties_SetMassProperties(this, allowedDOFs, massProperties);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L95">Jolt/Physics/Body/MotionProperties.h:95</see>
/// <br/>
/// <c>inline float GetInverseMass() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get inverse mass (1 / mass). Should only be called on a dynamic object (static or kinematic bodies have
/// infinite mass so should be treated as 1 / mass = 0)
/// </para>
/// </remarks>
public float GetInverseMass() => Jolt.PInvoke.MotionProperties_GetInverseMass(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L96">Jolt/Physics/Body/MotionProperties.h:96</see>
/// <br/>
/// <c>inline float GetInverseMassUnchecked() const</c>
/// </para>
/// </summary>
public float GetInverseMassUnchecked() => Jolt.PInvoke.MotionProperties_GetInverseMassUnchecked(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L102">Jolt/Physics/Body/MotionProperties.h:102</see>
/// <br/>
/// <c>void SetInverseMass(float inInverseMass)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Set the inverse mass (1 / mass).
/// Note that mass and inertia are linearly related (e.g. inertia of a sphere with mass m and radius r is \f$2/5 \: m \: r^2\f$).
/// If you change mass, inertia should probably change as well. You can use ScaleToMass to update mass and inertia at the same time.
/// If all your translation degrees of freedom are restricted, make sure this is zero (see EAllowedDOFs).
/// </code>
/// </remarks>
public void SetInverseMass(float inverseMass) => Jolt.PInvoke.MotionProperties_SetInverseMass(this, inverseMass);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L105">Jolt/Physics/Body/MotionProperties.h:105</see>
/// <br/>
/// <c>inline Vec3 GetInverseInertiaDiagonal() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Diagonal of inverse inertia matrix: D. Should only be called on a dynamic object (static or kinematic
/// bodies have infinite mass so should be treated as D = 0)
/// </para>
/// </remarks>
public float3 GetInverseInertiaDiagonal() => Jolt.PInvoke.MotionProperties_GetInverseInertiaDiagonal(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L108">Jolt/Physics/Body/MotionProperties.h:108</see>
/// <br/>
/// <c>inline Quat GetInertiaRotation() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Rotation (R) that takes inverse inertia diagonal to local space: \f$I_{body}^{-1} = R \: D \: R^{-1}\f$
/// </para>
/// </remarks>
public floatQuat GetInertiaRotation() => Jolt.PInvoke.MotionProperties_GetInertiaRotation(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L114">Jolt/Physics/Body/MotionProperties.h:114</see>
/// <br/>
/// <c>void SetInverseInertia(Vec3Arg inDiagonal, QuatArg inRot)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Set the inverse inertia tensor in local space by setting the diagonal and the rotation: \f$I_{body}^{-1} = R \: D \: R^{-1}\f$.
/// Note that mass and inertia are linearly related (e.g. inertia of a sphere with mass m and radius r is \f$2/5 \: m \: r^2\f$).
/// If you change inertia, mass should probably change as well. You can use ScaleToMass to update mass and inertia at the same time.
/// If all your rotation degrees of freedom are restricted, make sure this is zero (see EAllowedDOFs).
/// </code>
/// </remarks>
public void SetInverseInertia(float3 diagonal, floatQuat rot) => Jolt.PInvoke.MotionProperties_SetInverseInertia(this, diagonal, rot);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L118">Jolt/Physics/Body/MotionProperties.h:118</see>
/// <br/>
/// <c>void ScaleToMass(float inMass)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Sets the mass to inMass and scale the inertia tensor based on the ratio between the old and new mass.
/// Note that this only works when the current mass is finite (i.e. the body is dynamic and translational degrees of freedom are not restricted).
/// </code>
/// </remarks>
public void ScaleToMass(float mass) => Jolt.PInvoke.MotionProperties_ScaleToMass(this, mass);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L121">Jolt/Physics/Body/MotionProperties.h:121</see>
/// <br/>
/// <c>inline Mat44 GetLocalSpaceInverseInertia() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get inverse inertia matrix (\f$I_{body}^{-1}\f$). Will be a matrix of zeros for a static or kinematic
/// object.
/// </para>
/// </remarks>
public float4x4 GetLocalSpaceInverseInertia() => Jolt.PInvoke.MotionProperties_GetLocalSpaceInverseInertia(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L124">Jolt/Physics/Body/MotionProperties.h:124</see>
/// <br/>
/// <c>inline Mat44 GetLocalSpaceInverseInertiaUnchecked() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Same as GetLocalSpaceInverseInertia() but doesn't check if the body is dynamic
/// </para>
/// </remarks>
public float4x4 GetLocalSpaceInverseInertiaUnchecked() => Jolt.PInvoke.MotionProperties_GetLocalSpaceInverseInertiaUnchecked(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L127">Jolt/Physics/Body/MotionProperties.h:127</see>
/// <br/>
/// <c>inline Mat44 GetInverseInertiaForRotation(Mat44Arg inRotation) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get inverse inertia matrix (\f$I^{-1}\f$) for a given object rotation (translation will be ignored).
/// Zero if object is static or kinematic.
/// </para>
/// </remarks>
public float4x4 GetInverseInertiaForRotation(float4x4 rotation) => Jolt.PInvoke.MotionProperties_GetInverseInertiaForRotation(this, rotation);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L130">Jolt/Physics/Body/MotionProperties.h:130</see>
/// <br/>
/// <c>Vec3 MultiplyWorldSpaceInverseInertiaByVector(QuatArg inBodyRotation, Vec3Arg inV) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Multiply a vector with the inverse world space inertia tensor (\f$I_{world}^{-1}\f$). Zero if object is
/// static or kinematic.
/// </para>
/// </remarks>
public float3 MultiplyWorldSpaceInverseInertiaByVector(floatQuat bodyRotation, float3 v) => Jolt.PInvoke.MotionProperties_MultiplyWorldSpaceInverseInertiaByVector(this, bodyRotation, v);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L133">Jolt/Physics/Body/MotionProperties.h:133</see>
/// <br/>
/// <c>Vec3 GetPointVelocityCOM(Vec3Arg inPointRelativeToCOM) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Velocity of point inPoint (in center of mass space, e.g. on the surface of the body) of the body (unit:
/// m/s)
/// </para>
/// </remarks>
public float3 GetPointVelocityCOM(float3 pointRelativeToCOM) => Jolt.PInvoke.MotionProperties_GetPointVelocityCOM(this, pointRelativeToCOM);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L136">Jolt/Physics/Body/MotionProperties.h:136</see>
/// <br/>
/// <c>Vec3 GetAccumulatedForce() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the total amount of force applied to the center of mass this time step (through Body::AddForce
/// calls). Note that it will reset to zero after PhysicsSystem::Update.
/// </para>
/// </remarks>
public float3 GetAccumulatedForce() => Jolt.PInvoke.MotionProperties_GetAccumulatedForce(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L139">Jolt/Physics/Body/MotionProperties.h:139</see>
/// <br/>
/// <c>Vec3 GetAccumulatedTorque() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the total amount of torque applied to the center of mass this time step (through
/// Body::AddForce/Body::AddTorque calls). Note that it will reset to zero after PhysicsSystem::Update.
/// </para>
/// </remarks>
public float3 GetAccumulatedTorque() => Jolt.PInvoke.MotionProperties_GetAccumulatedTorque(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L142">Jolt/Physics/Body/MotionProperties.h:142</see>
/// <br/>
/// <c>void ResetForce()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Reset the total accumulated force, note that this will be done automatically after every time step.
/// </para>
/// </remarks>
public void ResetForce() => Jolt.PInvoke.MotionProperties_ResetForce(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L145">Jolt/Physics/Body/MotionProperties.h:145</see>
/// <br/>
/// <c>void ResetTorque()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Reset the total accumulated torque, note that this will be done automatically after every time step.
/// </para>
/// </remarks>
public void ResetTorque() => Jolt.PInvoke.MotionProperties_ResetTorque(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L148">Jolt/Physics/Body/MotionProperties.h:148</see>
/// <br/>
/// <c>void ResetMotion()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Reset the current velocity and accumulated force and torque.
/// </para>
/// </remarks>
public void ResetMotion() => Jolt.PInvoke.MotionProperties_ResetMotion(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L163">Jolt/Physics/Body/MotionProperties.h:163</see>
/// <br/>
/// <c>Vec3 LockTranslation(Vec3Arg inV) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Takes a translation vector inV and returns a vector where the components that are not allowed by
/// mAllowedDOFs are set to 0
/// </para>
/// </remarks>
public float3 LockTranslation(float3 v) => Jolt.PInvoke.MotionProperties_LockTranslation(this, v);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L176">Jolt/Physics/Body/MotionProperties.h:176</see>
/// <br/>
/// <c>Vec3 LockAngular(Vec3Arg inV) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Takes an angular velocity / torque vector inV and returns a vector where the components that are not
/// allowed by mAllowedDOFs are set to 0
/// </para>
/// </remarks>
public float3 LockAngular(float3 v) => Jolt.PInvoke.MotionProperties_LockAngular(this, v);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L182">Jolt/Physics/Body/MotionProperties.h:182</see>
/// <br/>
/// <c>void SetNumVelocityStepsOverride(uint inN)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Used only when this body is dynamic and colliding. Override for the number of solver velocity iterations
/// to run, 0 means use the default in PhysicsSettings::mNumVelocitySteps. The number of iterations to use
/// is the max of all contacts and constraints in the island.
/// </para>
/// </remarks>
public void SetNumVelocityStepsOverride(uint n) => Jolt.PInvoke.MotionProperties_SetNumVelocityStepsOverride(this, n);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L183">Jolt/Physics/Body/MotionProperties.h:183</see>
/// <br/>
/// <c>uint GetNumVelocityStepsOverride() const</c>
/// </para>
/// </summary>
public uint GetNumVelocityStepsOverride() => Jolt.PInvoke.MotionProperties_GetNumVelocityStepsOverride(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L186">Jolt/Physics/Body/MotionProperties.h:186</see>
/// <br/>
/// <c>void SetNumPositionStepsOverride(uint inN)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Used only when this body is dynamic and colliding. Override for the number of solver position iterations
/// to run, 0 means use the default in PhysicsSettings::mNumPositionSteps. The number of iterations to use
/// is the max of all contacts and constraints in the island.
/// </para>
/// </remarks>
public void SetNumPositionStepsOverride(uint n) => Jolt.PInvoke.MotionProperties_SetNumPositionStepsOverride(this, n);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L187">Jolt/Physics/Body/MotionProperties.h:187</see>
/// <br/>
/// <c>uint GetNumPositionStepsOverride() const</c>
/// </para>
/// </summary>
public uint GetNumPositionStepsOverride() => Jolt.PInvoke.MotionProperties_GetNumPositionStepsOverride(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L217">Jolt/Physics/Body/MotionProperties.h:217</see>
/// <br/>
/// <c>inline void AddLinearVelocityStep(Vec3Arg inLinearVelocityChange)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// @name Update linear and angular velocity (used during constraint solving)
/// @{
/// </code>
/// </remarks>
public void AddLinearVelocityStep(float3 linearVelocityChange) => Jolt.PInvoke.MotionProperties_AddLinearVelocityStep(this, linearVelocityChange);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L218">Jolt/Physics/Body/MotionProperties.h:218</see>
/// <br/>
/// <c>inline void SubLinearVelocityStep(Vec3Arg inLinearVelocityChange)</c>
/// </para>
/// </summary>
public void SubLinearVelocityStep(float3 linearVelocityChange) => Jolt.PInvoke.MotionProperties_SubLinearVelocityStep(this, linearVelocityChange);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L219">Jolt/Physics/Body/MotionProperties.h:219</see>
/// <br/>
/// <c>inline void AddAngularVelocityStep(Vec3Arg inAngularVelocityChange)</c>
/// </para>
/// </summary>
public void AddAngularVelocityStep(float3 angularVelocityChange) => Jolt.PInvoke.MotionProperties_AddAngularVelocityStep(this, angularVelocityChange);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L220">Jolt/Physics/Body/MotionProperties.h:220</see>
/// <br/>
/// <c>inline void SubAngularVelocityStep(Vec3Arg inAngularVelocityChange)</c>
/// </para>
/// </summary>
public void SubAngularVelocityStep(float3 angularVelocityChange) => Jolt.PInvoke.MotionProperties_SubAngularVelocityStep(this, angularVelocityChange);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L224">Jolt/Physics/Body/MotionProperties.h:224</see>
/// <br/>
/// <c>inline void ApplyGyroscopicForceInternal(QuatArg inBodyRotation, float inDeltaTime)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Apply the gyroscopic force (aka Dzhanibekov effect, see
/// https://en.wikipedia.org/wiki/Tennis_racket_theorem)
/// </para>
/// </remarks>
public void ApplyGyroscopicForceInternal(floatQuat bodyRotation, float deltaTime) => Jolt.PInvoke.MotionProperties_ApplyGyroscopicForceInternal(this, bodyRotation, deltaTime);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L227">Jolt/Physics/Body/MotionProperties.h:227</see>
/// <br/>
/// <c>inline void ApplyForceTorqueAndDragInternal(QuatArg inBodyRotation, Vec3Arg inGravity, float inDeltaTime)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Apply all accumulated forces, torques and drag (should only be called by the PhysicsSystem)
/// </para>
/// </remarks>
public void ApplyForceTorqueAndDragInternal(floatQuat bodyRotation, float3 gravity, float deltaTime) => Jolt.PInvoke.MotionProperties_ApplyForceTorqueAndDragInternal(this, bodyRotation, gravity, deltaTime);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L230">Jolt/Physics/Body/MotionProperties.h:230</see>
/// <br/>
/// <c>uint32 GetIslandIndexInternal() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Access to the island index
/// </para>
/// </remarks>
public uint GetIslandIndexInternal() => Jolt.PInvoke.MotionProperties_GetIslandIndexInternal(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L231">Jolt/Physics/Body/MotionProperties.h:231</see>
/// <br/>
/// <c>void SetIslandIndexInternal(uint32 inIndex)</c>
/// </para>
/// </summary>
public void SetIslandIndexInternal(uint index) => Jolt.PInvoke.MotionProperties_SetIslandIndexInternal(this, index);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L234">Jolt/Physics/Body/MotionProperties.h:234</see>
/// <br/>
/// <c>uint32 GetIndexInActiveBodiesInternal() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Access to the index in the active bodies array
/// </para>
/// </remarks>
public uint GetIndexInActiveBodiesInternal() => Jolt.PInvoke.MotionProperties_GetIndexInActiveBodiesInternal(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L244">Jolt/Physics/Body/MotionProperties.h:244</see>
/// <br/>
/// <c>inline void ResetSleepTestTimer()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Reset the sleep test timer without resetting the sleep test spheres
/// </para>
/// </remarks>
public void ResetSleepTestTimer() => Jolt.PInvoke.MotionProperties_ResetSleepTestTimer(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/MotionProperties.h#L247">Jolt/Physics/Body/MotionProperties.h:247</see>
/// <br/>
/// <c>inline ECanSleep AccumulateSleepTime(float inDeltaTime, float inTimeBeforeSleep)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Accumulate sleep time and return if a body can go to sleep
/// </para>
/// </remarks>
public ECanSleep AccumulateSleepTime(float deltaTime, float timeBeforeSleep) => Jolt.PInvoke.MotionProperties_AccumulateSleepTime(this, deltaTime, timeBeforeSleep);
}
}