mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 21:48:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,83 @@
|
|||
// <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/StateRecorder.h#L109">Jolt/Physics/StateRecorder.h:109</see>
|
||||
/// <br/>
|
||||
/// <c>class StateRecorder : public StreamIn, public StreamOut</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Class that records the state of a physics system. Can be used to check if the simulation is deterministic by putting the recorder in validation mode.
|
||||
/// Can be used to restore the state to an earlier point in time. Note that only the state that is modified by the simulation is saved, configuration settings
|
||||
/// like body friction or restitution, motion quality etc. are not saved and need to be saved by the user if desired.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct StateRecorder
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorder.h#L121">Jolt/Physics/StateRecorder.h:121</see>
|
||||
/// <br/>
|
||||
/// <c>void SetValidating(bool inValidating)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Sets the stream in validation mode. In this case the physics system ensures that before it calls ReadBytes that it will
|
||||
/// ensure that those bytes contain the current state. This makes it possible to step and save the state, restore to the previous
|
||||
/// step and step again and when the recorded state is not the same it can restore the expected state and any byte that changes
|
||||
/// due to a ReadBytes function can be caught to find out which part of the simulation is not deterministic.
|
||||
/// Note that validation only works when saving the full state of the simulation (EStateRecorderState::All, StateRecorderFilter == nullptr).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public void SetValidating(bool validating) => Jolt.PInvoke.StateRecorder_SetValidating(this, validating);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorder.h#L122">Jolt/Physics/StateRecorder.h:122</see>
|
||||
/// <br/>
|
||||
/// <c>bool IsValidating() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public bool IsValidating() => Jolt.PInvoke.StateRecorder_IsValidating(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorder.h#L128">Jolt/Physics/StateRecorder.h:128</see>
|
||||
/// <br/>
|
||||
/// <c>void SetIsLastPart(bool inIsLastPart)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// This allows splitting the state in multiple parts. While restoring, only the last part should have this flag set to true.
|
||||
/// Note that you should ensure that the different parts contain information for disjoint sets of bodies, constraints and contacts.
|
||||
/// E.g. if you restore the same contact twice, you get undefined behavior. In order to create disjoint sets you can use the StateRecorderFilter.
|
||||
/// Note that validation is not compatible with restoring a simulation state in multiple parts.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public void SetIsLastPart(bool isLastPart) => Jolt.PInvoke.StateRecorder_SetIsLastPart(this, isLastPart);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/StateRecorder.h#L129">Jolt/Physics/StateRecorder.h:129</see>
|
||||
/// <br/>
|
||||
/// <c>bool IsLastPart() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public bool IsLastPart() => Jolt.PInvoke.StateRecorder_IsLastPart(this);
|
||||
public static implicit operator StreamIn(StateRecorder value) => Jolt.PInvoke.StateRecorder_AsStreamIn(value);
|
||||
public static implicit operator StreamOut(StateRecorder value) => Jolt.PInvoke.StateRecorder_AsStreamOut(value);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue