//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyVertex.h:15
///
/// class SoftBodyVertex
///
///
///
///
/// Run time information for a single particle of a soft body
/// Note that at run-time you should only modify the inverse mass and/or velocity of a vertex to control the soft body.
/// Modifying the position can lead to missed collisions.
/// The other members are used internally by the soft body solver.
///
///
[InteropHandle]
public readonly partial struct SoftBodyVertex : IDisposable
{
public static SoftBodyVertex Create() => Jolt.PInvoke.SoftBodyVertex_Create();
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyVertex.h:19
///
/// inline void ResetCollision()
///
///
///
///
/// Reset collision information to prepare for a new collision check
///
///
public void ResetCollision() => Jolt.PInvoke.SoftBodyVertex_ResetCollision(this);
///
///
/// Internal use only. Position at the previous time step
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyVertex.h:26
///
/// Vec3 mPreviousPosition
///
///
public float3 GetPreviousPosition() => Jolt.PInvoke.SoftBodyVertex_GetPreviousPosition(this);
///
///
/// Internal use only. Position at the previous time step
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyVertex.h:26
///
/// Vec3 mPreviousPosition
///
///
public void SetPreviousPosition(float3 value) => Jolt.PInvoke.SoftBodyVertex_SetPreviousPosition(this, value);
///
///
/// Position, relative to the center of mass of the soft body
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyVertex.h:27
///
/// Vec3 mPosition
///
///
public float3 GetPosition() => Jolt.PInvoke.SoftBodyVertex_GetPosition(this);
///
///
/// Position, relative to the center of mass of the soft body
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyVertex.h:27
///
/// Vec3 mPosition
///
///
public void SetPosition(float3 value) => Jolt.PInvoke.SoftBodyVertex_SetPosition(this, value);
///
///
/// Velocity, relative to the center of mass of the soft body
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyVertex.h:28
///
/// Vec3 mVelocity
///
///
public float3 GetVelocity() => Jolt.PInvoke.SoftBodyVertex_GetVelocity(this);
///
///
/// Velocity, relative to the center of mass of the soft body
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyVertex.h:28
///
/// Vec3 mVelocity
///
///
public void SetVelocity(float3 value) => Jolt.PInvoke.SoftBodyVertex_SetVelocity(this, value);
///
///
/// Internal use only. Index in the colliding shapes list of the body we may collide with
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyVertex.h:30
///
/// int mCollidingShapeIndex
///
///
public int GetCollidingShapeIndex() => Jolt.PInvoke.SoftBodyVertex_GetCollidingShapeIndex(this);
///
///
/// Internal use only. Index in the colliding shapes list of the body we may collide with
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyVertex.h:30
///
/// int mCollidingShapeIndex
///
///
public void SetCollidingShapeIndex(int value) => Jolt.PInvoke.SoftBodyVertex_SetCollidingShapeIndex(this, value);
///
///
/// True if the vertex has collided with anything in the last update
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyVertex.h:31
///
/// bool mHasContact
///
///
public bool GetHasContact() => Jolt.PInvoke.SoftBodyVertex_GetHasContact(this);
///
///
/// True if the vertex has collided with anything in the last update
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyVertex.h:31
///
/// bool mHasContact
///
///
public void SetHasContact(bool value) => Jolt.PInvoke.SoftBodyVertex_SetHasContact(this, value);
///
///
/// Internal use only. Used while finding the collision plane, stores the largest penetration found so far
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyVertex.h:32
///
/// float mLargestPenetration
///
///
public float GetLargestPenetration() => Jolt.PInvoke.SoftBodyVertex_GetLargestPenetration(this);
///
///
/// Internal use only. Used while finding the collision plane, stores the largest penetration found so far
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyVertex.h:32
///
/// float mLargestPenetration
///
///
public void SetLargestPenetration(float value) => Jolt.PInvoke.SoftBodyVertex_SetLargestPenetration(this, value);
///
///
/// Inverse mass (1 / mass)
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyVertex.h:33
///
/// float mInvMass
///
///
public float GetInvMass() => Jolt.PInvoke.SoftBodyVertex_GetInvMass(this);
///
///
/// Inverse mass (1 / mass)
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodyVertex.h:33
///
/// float mInvMass
///
///
public void SetInvMass(float value) => Jolt.PInvoke.SoftBodyVertex_SetInvMass(this, value);
public void Dispose() => Jolt.PInvoke.SoftBodyVertex_Destroy(this);
}
}