mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
376 lines
16 KiB
C#
376 lines
16 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/PhysicsUpdateContext.h#L27">Jolt/Physics/PhysicsUpdateContext.h:27</see>
|
|
/// <br/>
|
|
/// <c>class PhysicsUpdateContext : public NonCopyable</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @cond INTERNAL
|
|
/// Internal information used during the PhysicsSystem::Update call
|
|
///
|
|
/// WARNING: This class is an internal part of PhysicsSystem, it has no functions that can be called by users of the library.
|
|
/// </code>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct PhysicsUpdateContext : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Destructor
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L31">Jolt/Physics/PhysicsUpdateContext.h:31</see>
|
|
/// <br/>
|
|
/// <c>explicit PhysicsUpdateContext(TempAllocator &inTempAllocator)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static PhysicsUpdateContext Create(TempAllocator tempAllocator) =>
|
|
Jolt.PInvoke.PhysicsUpdateContext_Create(tempAllocator);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Need to put max concurrency in temp var as min requires a reference
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L152">Jolt/Physics/PhysicsUpdateContext.h:152</see>
|
|
/// <br/>
|
|
/// <c>int GetMaxConcurrency() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Maximum amount of concurrent jobs on this machine
|
|
/// </para>
|
|
/// </remarks>
|
|
public int GetMaxConcurrency() => Jolt.PInvoke.PhysicsUpdateContext_GetMaxConcurrency(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum supported amount of concurrent jobs
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L34">Jolt/Physics/PhysicsUpdateContext.h:34</see>
|
|
/// <br/>
|
|
/// <c>static constexpr int cMaxConcurrency = 32</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static int GetCMaxConcurrency() => Jolt.PInvoke.PhysicsUpdateContext_GetCMaxConcurrency();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// The physics system we belong to
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L154">Jolt/Physics/PhysicsUpdateContext.h:154</see>
|
|
/// <br/>
|
|
/// <c>PhysicsSystem * mPhysicsSystem</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public PhysicsSystem GetPhysicsSystem() => Jolt.PInvoke.PhysicsUpdateContext_GetPhysicsSystem(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// The physics system we belong to
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L154">Jolt/Physics/PhysicsUpdateContext.h:154</see>
|
|
/// <br/>
|
|
/// <c>PhysicsSystem * mPhysicsSystem</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetPhysicsSystem(PhysicsSystem value) =>
|
|
Jolt.PInvoke.PhysicsUpdateContext_SetPhysicsSystem(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Temporary allocator used during the update
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L155">Jolt/Physics/PhysicsUpdateContext.h:155</see>
|
|
/// <br/>
|
|
/// <c>TempAllocator * mTempAllocator</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public TempAllocator GetTempAllocator() => Jolt.PInvoke.PhysicsUpdateContext_GetTempAllocator(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Temporary allocator used during the update
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L155">Jolt/Physics/PhysicsUpdateContext.h:155</see>
|
|
/// <br/>
|
|
/// <c>TempAllocator * mTempAllocator</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetTempAllocator(TempAllocator value) =>
|
|
Jolt.PInvoke.PhysicsUpdateContext_SetTempAllocator(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Job system that processes jobs
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L156">Jolt/Physics/PhysicsUpdateContext.h:156</see>
|
|
/// <br/>
|
|
/// <c>JobSystem * mJobSystem</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public JobSystem GetJobSystem() => Jolt.PInvoke.PhysicsUpdateContext_GetJobSystem(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Job system that processes jobs
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L156">Jolt/Physics/PhysicsUpdateContext.h:156</see>
|
|
/// <br/>
|
|
/// <c>JobSystem * mJobSystem</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetJobSystem(JobSystem value) => Jolt.PInvoke.PhysicsUpdateContext_SetJobSystem(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Delta time for a simulation step (collision step)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L159">Jolt/Physics/PhysicsUpdateContext.h:159</see>
|
|
/// <br/>
|
|
/// <c>float mStepDeltaTime</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetStepDeltaTime() => Jolt.PInvoke.PhysicsUpdateContext_GetStepDeltaTime(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Delta time for a simulation step (collision step)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L159">Jolt/Physics/PhysicsUpdateContext.h:159</see>
|
|
/// <br/>
|
|
/// <c>float mStepDeltaTime</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetStepDeltaTime(float value) => Jolt.PInvoke.PhysicsUpdateContext_SetStepDeltaTime(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Ratio of this step delta time vs last step
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L160">Jolt/Physics/PhysicsUpdateContext.h:160</see>
|
|
/// <br/>
|
|
/// <c>float mWarmStartImpulseRatio</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetWarmStartImpulseRatio() => Jolt.PInvoke.PhysicsUpdateContext_GetWarmStartImpulseRatio(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Ratio of this step delta time vs last step
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L160">Jolt/Physics/PhysicsUpdateContext.h:160</see>
|
|
/// <br/>
|
|
/// <c>float mWarmStartImpulseRatio</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetWarmStartImpulseRatio(float value) =>
|
|
Jolt.PInvoke.PhysicsUpdateContext_SetWarmStartImpulseRatio(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Constraints that were active at the start of the physics update step (activating bodies can activate
|
|
/// constraints and we need a consistent snapshot). Only these constraints will be resolved.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L163">Jolt/Physics/PhysicsUpdateContext.h:163</see>
|
|
/// <br/>
|
|
/// <c>Constraint ** mActiveConstraints = nullptr</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public unsafe void SetActiveConstraints(Ptr<Constraint> value) =>
|
|
Jolt.PInvoke.PhysicsUpdateContext_SetActiveConstraints(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// A list of body pairs found by the broadphase
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L165">Jolt/Physics/PhysicsUpdateContext.h:165</see>
|
|
/// <br/>
|
|
/// <c>BodyPair * mBodyPairs = nullptr</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public unsafe void SetBodyPairs(Ptr<BodyPair> value) =>
|
|
Jolt.PInvoke.PhysicsUpdateContext_SetBodyPairs(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Keeps track of all bodies in the simulation
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L167">Jolt/Physics/PhysicsUpdateContext.h:167</see>
|
|
/// <br/>
|
|
/// <c>BodyManager * mBodyManager</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public BodyManager GetBodyManager() => Jolt.PInvoke.PhysicsUpdateContext_GetBodyManager(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Keeps track of all bodies in the simulation
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L167">Jolt/Physics/PhysicsUpdateContext.h:167</see>
|
|
/// <br/>
|
|
/// <c>BodyManager * mBodyManager</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetBodyManager(BodyManager value) => Jolt.PInvoke.PhysicsUpdateContext_SetBodyManager(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Keeps track of connected bodies and builds islands for multithreaded velocity/position update
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L168">Jolt/Physics/PhysicsUpdateContext.h:168</see>
|
|
/// <br/>
|
|
/// <c>IslandBuilder * mIslandBuilder</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public IslandBuilder GetIslandBuilder() => Jolt.PInvoke.PhysicsUpdateContext_GetIslandBuilder(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Keeps track of connected bodies and builds islands for multithreaded velocity/position update
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L168">Jolt/Physics/PhysicsUpdateContext.h:168</see>
|
|
/// <br/>
|
|
/// <c>IslandBuilder * mIslandBuilder</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetIslandBuilder(IslandBuilder value) =>
|
|
Jolt.PInvoke.PhysicsUpdateContext_SetIslandBuilder(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Number of active soft bodies in the simulation
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L172">Jolt/Physics/PhysicsUpdateContext.h:172</see>
|
|
/// <br/>
|
|
/// <c>uint mNumSoftBodies</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetNumSoftBodies() => Jolt.PInvoke.PhysicsUpdateContext_GetNumSoftBodies(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Number of active soft bodies in the simulation
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L172">Jolt/Physics/PhysicsUpdateContext.h:172</see>
|
|
/// <br/>
|
|
/// <c>uint mNumSoftBodies</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetNumSoftBodies(uint value) => Jolt.PInvoke.PhysicsUpdateContext_SetNumSoftBodies(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Contexts for updating soft bodies
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L173">Jolt/Physics/PhysicsUpdateContext.h:173</see>
|
|
/// <br/>
|
|
/// <c>SoftBodyUpdateContext * mSoftBodyUpdateContexts = nullptr</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public SoftBodyUpdateContext GetSoftBodyUpdateContexts() =>
|
|
Jolt.PInvoke.PhysicsUpdateContext_GetSoftBodyUpdateContexts(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Contexts for updating soft bodies
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsUpdateContext.h#L173">Jolt/Physics/PhysicsUpdateContext.h:173</see>
|
|
/// <br/>
|
|
/// <c>SoftBodyUpdateContext * mSoftBodyUpdateContexts = nullptr</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetSoftBodyUpdateContexts(SoftBodyUpdateContext value) =>
|
|
Jolt.PInvoke.PhysicsUpdateContext_SetSoftBodyUpdateContexts(this, value);
|
|
|
|
public void Dispose() => Jolt.PInvoke.PhysicsUpdateContext_Destroy(this);
|
|
}
|
|
}
|