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
|
|
@ -0,0 +1,115 @@
|
|||
// <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>
|
||||
/// Class that allows iterating over the vertices of a soft body. It tracks the largest penetration and allows
|
||||
/// storing the resulting collision in a different structure than the soft body vertex itself.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideSoftBodyVertexIterator.h#L14">Jolt/Physics/Collision/CollideSoftBodyVertexIterator.h:14</see>
|
||||
/// <br/>
|
||||
/// <c>class CollideSoftBodyVertexIterator</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct CollideSoftBodyVertexIterator : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Default constructor
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideSoftBodyVertexIterator.h#L18">Jolt/Physics/Collision/CollideSoftBodyVertexIterator.h:18</see>
|
||||
/// <br/>
|
||||
/// <c>CollideSoftBodyVertexIterator() = default</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static CollideSoftBodyVertexIterator Create() => Jolt.PInvoke.CollideSoftBodyVertexIterator_Create();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Construct using a soft body vertex
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideSoftBodyVertexIterator.h#L32">Jolt/Physics/Collision/CollideSoftBodyVertexIterator.h:32</see>
|
||||
/// <br/>
|
||||
/// <c>explicit CollideSoftBodyVertexIterator(SoftBodyVertex *inVertices)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe CollideSoftBodyVertexIterator Create(Ptr<SoftBodyVertex> vertices) =>
|
||||
Jolt.PInvoke.CollideSoftBodyVertexIterator_Create_2(vertices);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Get the position of the current vertex
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideSoftBodyVertexIterator.h#L70">Jolt/Physics/Collision/CollideSoftBodyVertexIterator.h:70</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 GetPosition() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetPosition() => Jolt.PInvoke.CollideSoftBodyVertexIterator_GetPosition(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Get the inverse mass of the current vertex
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideSoftBodyVertexIterator.h#L76">Jolt/Physics/Collision/CollideSoftBodyVertexIterator.h:76</see>
|
||||
/// <br/>
|
||||
/// <c>float GetInvMass() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetInvMass() => Jolt.PInvoke.CollideSoftBodyVertexIterator_GetInvMass(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Update penetration of the current vertex
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideSoftBodyVertexIterator.h#L83">Jolt/Physics/Collision/CollideSoftBodyVertexIterator.h:83</see>
|
||||
/// <br/>
|
||||
/// <c>bool UpdatePenetration(float inLargestPenetration) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Update penetration of the current vertex
|
||||
/// @return Returns true if the vertex has the largest penetration so far, this means you need to follow up by calling SetCollision
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public bool UpdatePenetration(float largestPenetration) =>
|
||||
Jolt.PInvoke.CollideSoftBodyVertexIterator_UpdatePenetration(this, largestPenetration);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Update the collision of the current vertex
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideSoftBodyVertexIterator.h#L93">Jolt/Physics/Collision/CollideSoftBodyVertexIterator.h:93</see>
|
||||
/// <br/>
|
||||
/// <c>void SetCollision(const Plane &inCollisionPlane, int inCollidingShapeIndex) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetCollision(in Plane collisionPlane, int collidingShapeIndex) =>
|
||||
Jolt.PInvoke.CollideSoftBodyVertexIterator_SetCollision(this, in collisionPlane, collidingShapeIndex);
|
||||
|
||||
public void Dispose() => Jolt.PInvoke.CollideSoftBodyVertexIterator_Destroy(this);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue