Jolt Physics
A multi core friendly Game Physics Engine
|
Base class for locking bodies for the duration of the scope of this class (do not use directly) More...
#include <BodyLock.h>
Public Member Functions | |
BodyLockBase (const BodyLockInterface &inBodyLockInterface, const BodyID &inBodyID) | |
Constructor will lock the body. More... | |
void | ReleaseLock () |
Explicitly release the lock (normally this is done in the destructor) More... | |
~BodyLockBase () | |
Destructor will unlock the body. More... | |
bool | Succeeded () const |
Test if the lock was successful (if the body ID was valid) More... | |
bool | SucceededAndIsInBroadPhase () const |
Test if the lock was successful (if the body ID was valid) and the body is still in the broad phase. More... | |
BodyType & | GetBody () const |
Access the body. More... | |
Public Member Functions inherited from NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
void | operator= (const NonCopyable &)=delete |
Base class for locking bodies for the duration of the scope of this class (do not use directly)
|
inline |
Constructor will lock the body.
|
inline |
Destructor will unlock the body.
|
inline |
Access the body.
|
inline |
Explicitly release the lock (normally this is done in the destructor)
|
inline |
Test if the lock was successful (if the body ID was valid)
|
inline |
Test if the lock was successful (if the body ID was valid) and the body is still in the broad phase.