16JPH_SUPPRESS_WARNING_PUSH
30JPH_SUPPRESS_WARNING_POP
59 ioLHS = ioLHS | inRHS;
66 ioLHS = ioLHS & inRHS;
73 ioLHS = ioLHS ^ inRHS;
132 bool mIsValidating =
false;
133 bool mIsLastPart =
true;
std::uint8_t uint8
Definition Core.h:482
#define JPH_EXPORT
Definition Core.h:271
#define JPH_GCC_SUPPRESS_WARNING(w)
Definition Core.h:308
#define JPH_NAMESPACE_END
Definition Core.h:414
#define JPH_NAMESPACE_BEGIN
Definition Core.h:408
constexpr EStateRecorderState & operator&=(EStateRecorderState &ioLHS, EStateRecorderState inRHS)
Bitwise AND assignment operator for EStateRecorderState.
Definition StateRecorder.h:64
constexpr EStateRecorderState operator^(EStateRecorderState inLHS, EStateRecorderState inRHS)
Bitwise XOR operator for EStateRecorderState.
Definition StateRecorder.h:45
constexpr EStateRecorderState operator&(EStateRecorderState inLHS, EStateRecorderState inRHS)
Bitwise AND operator for EStateRecorderState.
Definition StateRecorder.h:39
constexpr EStateRecorderState & operator^=(EStateRecorderState &ioLHS, EStateRecorderState inRHS)
Bitwise XOR assignment operator for EStateRecorderState.
Definition StateRecorder.h:71
constexpr EStateRecorderState & operator|=(EStateRecorderState &ioLHS, EStateRecorderState inRHS)
Bitwise OR assignment operator for EStateRecorderState.
Definition StateRecorder.h:57
EStateRecorderState
A bit field that determines which aspects of the simulation to save.
Definition StateRecorder.h:21
@ 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:51
JPH_SUPPRESS_WARNING_POP constexpr EStateRecorderState operator|(EStateRecorderState inLHS, EStateRecorderState inRHS)
Bitwise OR operator for EStateRecorderState.
Definition StateRecorder.h:33
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:79
virtual bool ShouldSaveConstraint(const Constraint &inConstraint) const
If the state of a specific constraint should be saved.
Definition StateRecorder.h:91
virtual bool ShouldRestoreContact(const BodyID &inBody1, const BodyID &inBody2) const
If the state of a specific contact should be restored.
Definition StateRecorder.h:101
virtual bool ShouldSaveContact(const BodyID &inBody1, const BodyID &inBody2) const
If the state of a specific contact should be saved.
Definition StateRecorder.h:94
virtual ~StateRecorderFilter()=default
Destructor.
virtual bool ShouldSaveBody(const Body &inBody) const
If the state of a specific body should be saved.
Definition StateRecorder.h:88
Definition StateRecorder.h:110
bool IsLastPart() const
Definition StateRecorder.h:129
bool IsValidating() const
Definition StateRecorder.h:122
StateRecorder(const StateRecorder &inRHS)
Definition StateRecorder.h:114
void SetValidating(bool inValidating)
Definition StateRecorder.h:121
void SetIsLastPart(bool inIsLastPart)
Definition StateRecorder.h:128
StateRecorder()=default
Constructor.
Simple binary input stream.
Definition StreamIn.h:13
Simple binary output stream.
Definition StreamOut.h:13