Jolt Physics
A multi core friendly Game Physics Engine
|
Base class for locking multiple bodies for the duration of the scope of this class (do not use directly) More...
#include <BodyLockMulti.h>
Public Types | |
using | MutexMask = BodyLockInterface::MutexMask |
Redefine MutexMask. More... | |
Public Member Functions | |
BodyLockMultiBase (const BodyLockInterface &inBodyLockInterface, const BodyID *inBodyIDs, int inNumber) | |
Constructor will lock the bodies. More... | |
~BodyLockMultiBase () | |
Destructor will unlock the bodies. More... | |
BodyType * | GetBody (int inBodyIndex) const |
Access the body (returns null if body was not properly locked) More... | |
Public Member Functions inherited from NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
void | operator= (const NonCopyable &)=delete |
Base class for locking multiple bodies for the duration of the scope of this class (do not use directly)
using BodyLockMultiBase< Write, BodyType >::MutexMask = BodyLockInterface::MutexMask |
Redefine MutexMask.
|
inline |
Constructor will lock the bodies.
|
inline |
Destructor will unlock the bodies.
|
inline |
Access the body (returns null if body was not properly locked)