mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
80 lines
3.3 KiB
C#
80 lines
3.3 KiB
C#
// <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>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/CalculateSolverSteps.h#L13">Jolt/Physics/Constraints/CalculateSolverSteps.h:13</see>
|
|
/// <br/>
|
|
/// <c>class CalculateSolverSteps</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @cond INTERNAL
|
|
/// Internal class used to calculate the total number of velocity and position steps
|
|
/// </code>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct CalculateSolverSteps : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/CalculateSolverSteps.h#L17">Jolt/Physics/Constraints/CalculateSolverSteps.h:17</see>
|
|
/// <br/>
|
|
/// <c>explicit CalculateSolverSteps(const PhysicsSettings &inSettings)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static CalculateSolverSteps Create(in PhysicsSettings settings) =>
|
|
Jolt.PInvoke.CalculateSolverSteps_Create(in settings);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Must be called after all bodies/constraints have been processed
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/CalculateSolverSteps.h#L33">Jolt/Physics/Constraints/CalculateSolverSteps.h:33</see>
|
|
/// <br/>
|
|
/// <c>void Finalize()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void Complete() => Jolt.PInvoke.CalculateSolverSteps_Complete(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get the results of the calculation
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/CalculateSolverSteps.h#L43">Jolt/Physics/Constraints/CalculateSolverSteps.h:43</see>
|
|
/// <br/>
|
|
/// <c>uint GetNumPositionSteps() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetNumPositionSteps() => Jolt.PInvoke.CalculateSolverSteps_GetNumPositionSteps(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Constraints/CalculateSolverSteps.h#L44">Jolt/Physics/Constraints/CalculateSolverSteps.h:44</see>
|
|
/// <br/>
|
|
/// <c>uint GetNumVelocitySteps() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetNumVelocitySteps() => Jolt.PInvoke.CalculateSolverSteps_GetNumVelocitySteps(this);
|
|
|
|
public void Dispose() => Jolt.PInvoke.CalculateSolverSteps_Destroy(this);
|
|
}
|
|
}
|