54 ioLHS = ioLHS | inRHS;
61 ioLHS = ioLHS & inRHS;
68 ioLHS = ioLHS ^ inRHS;
127 bool mIsValidating =
false;
128 bool mIsLastPart =
true;
std::uint8_t uint8
Definition Core.h:454
#define JPH_EXPORT
Definition Core.h:236
#define JPH_NAMESPACE_END
Definition Core.h:379
#define JPH_NAMESPACE_BEGIN
Definition Core.h:373
constexpr EStateRecorderState operator|(EStateRecorderState inLHS, EStateRecorderState inRHS)
Bitwise OR operator for EStateRecorderState.
Definition StateRecorder.h:28
constexpr EStateRecorderState & operator&=(EStateRecorderState &ioLHS, EStateRecorderState inRHS)
Bitwise AND assignment operator for EStateRecorderState.
Definition StateRecorder.h:59
constexpr EStateRecorderState operator^(EStateRecorderState inLHS, EStateRecorderState inRHS)
Bitwise XOR operator for EStateRecorderState.
Definition StateRecorder.h:40
constexpr EStateRecorderState operator&(EStateRecorderState inLHS, EStateRecorderState inRHS)
Bitwise AND operator for EStateRecorderState.
Definition StateRecorder.h:34
constexpr EStateRecorderState & operator^=(EStateRecorderState &ioLHS, EStateRecorderState inRHS)
Bitwise XOR assignment operator for EStateRecorderState.
Definition StateRecorder.h:66
constexpr EStateRecorderState & operator|=(EStateRecorderState &ioLHS, EStateRecorderState inRHS)
Bitwise OR assignment operator for EStateRecorderState.
Definition StateRecorder.h:52
EStateRecorderState
A bit field that determines which aspects of the simulation to save.
Definition StateRecorder.h:18
@ Bodies
Save the state of bodies.
@ Global
Save global physics system state (delta time, gravity, etc.)
@ Contacts
Save the state of contacts.
constexpr EStateRecorderState operator~(EStateRecorderState inAllowedDOFs)
Bitwise NOT operator for EStateRecorderState.
Definition StateRecorder.h:46
ID of a body. This is a way of reasoning about bodies in a multithreaded simulation while avoiding ra...
Definition BodyID.h:13
Base class for all physics constraints. A constraint removes one or more degrees of freedom for a rig...
Definition Constraint.h:103
User callbacks that allow determining which parts of the simulation should be saved by a StateRecorde...
Definition StateRecorder.h:74
virtual bool ShouldSaveConstraint(const Constraint &inConstraint) const
If the state of a specific constraint should be saved.
Definition StateRecorder.h:86
virtual bool ShouldRestoreContact(const BodyID &inBody1, const BodyID &inBody2) const
If the state of a specific contact should be restored.
Definition StateRecorder.h:96
virtual bool ShouldSaveContact(const BodyID &inBody1, const BodyID &inBody2) const
If the state of a specific contact should be saved.
Definition StateRecorder.h:89
virtual ~StateRecorderFilter()=default
Destructor.
virtual bool ShouldSaveBody(const Body &inBody) const
If the state of a specific body should be saved.
Definition StateRecorder.h:83
Definition StateRecorder.h:105
bool IsLastPart() const
Definition StateRecorder.h:124
bool IsValidating() const
Definition StateRecorder.h:117
StateRecorder(const StateRecorder &inRHS)
Definition StateRecorder.h:109
void SetValidating(bool inValidating)
Definition StateRecorder.h:116
void SetIsLastPart(bool inIsLastPart)
Definition StateRecorder.h:123
StateRecorder()=default
Constructor.
Simple binary input stream.
Definition StreamIn.h:13
Simple binary output stream.
Definition StreamOut.h:13