Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
BodyLockMultiWrite Class Reference

Specialization that locks multiple bodies for writing to. More...

#include <BodyLockMulti.h>

Inheritance diagram for BodyLockMultiWrite:
BodyLockMultiBase< true, Body > NonCopyable

Additional Inherited Members

- Public Types inherited from BodyLockMultiBase< true, Body >
using MutexMask
 Redefine MutexMask.
 
- Public Member Functions inherited from BodyLockMultiBase< true, Body >
 BodyLockMultiBase (const BodyLockInterface &inBodyLockInterface, const BodyID *inBodyIDs, int inNumber)
 Constructor will lock the bodies.
 
void ReleaseLocks ()
 Explicitly release the locks on all bodies (normally this is done in the destructor)
 
 ~BodyLockMultiBase ()
 Destructor will unlock the bodies.
 
int GetNumBodies () const
 Returns the number of bodies that were locked.
 
BodyGetBody (int inBodyIndex) const
 Access the body (returns null if body was not properly locked)
 
- Public Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 

Detailed Description

Specialization that locks multiple bodies for writing to.

See also
BodyLockMultiRead for usage patterns.

The documentation for this class was generated from the following file: