7#ifdef JPH_ENABLE_ASSERTS
15 enum class EAccess :
uint8
26 inline Grant(EAccess inVelocity, EAccess inPosition)
28 EAccess &velocity = sVelocityAccess();
29 EAccess &position = sPositionAccess();
34 velocity = inVelocity;
35 position = inPosition;
40 sVelocityAccess() = EAccess::ReadWrite;
41 sPositionAccess() = EAccess::ReadWrite;
46 static inline bool sCheckRights(EAccess inRights, EAccess inDesiredRights)
48 return (
uint8(inRights) &
uint8(inDesiredRights)) ==
uint8(inDesiredRights);
52 static inline EAccess & sVelocityAccess()
54 static thread_local EAccess sAccess = BodyAccess::EAccess::ReadWrite;
59 static inline EAccess & sPositionAccess()
61 static thread_local EAccess sAccess = BodyAccess::EAccess::ReadWrite;
@ None
No degrees of freedom are allowed. Note that this is not valid and will crash. Use a static body inst...
std::uint8_t uint8
Definition Core.h:482
#define JPH_EXPORT
Definition Core.h:271
#define JPH_NAMESPACE_END
Definition Core.h:414
#define JPH_NAMESPACE_BEGIN
Definition Core.h:408
#define JPH_ASSERT(...)
Definition IssueReporting.h:33