Bullet Collision Detection & Physics Library
|
SpuContactResult exports the contact points using double-buffered DMA transfers, only when needed So when an existing contact point is duplicated, no transfer/refresh is performed. More...
#include <SpuContactResult.h>
Public Member Functions | |
SpuContactResult () | |
virtual | ~SpuContactResult () |
btPersistentManifold * | GetSpuManifold () const |
virtual void | setShapeIdentifiersA (int partId0, int index0) |
setShapeIdentifiersA/B provides experimental support for per-triangle material / custom material combiner More... | |
virtual void | setShapeIdentifiersB (int partId1, int index1) |
void | setContactInfo (btPersistentManifold *spuManifold, ppu_address_t manifoldAddress, const btTransform &worldTrans0, const btTransform &worldTrans1, btScalar restitution0, btScalar restitution1, btScalar friction0, btScalar friction01, bool isSwapped) |
void | writeDoubleBufferedManifold (btPersistentManifold *lsManifold, btPersistentManifold *mmManifold) |
virtual void | addContactPoint (const btVector3 &normalOnBInWorld, const btVector3 &pointInWorld, btScalar depth) |
void | flush () |
Public Member Functions inherited from btDiscreteCollisionDetectorInterface::Result | |
virtual | ~Result () |
SpuContactResult exports the contact points using double-buffered DMA transfers, only when needed So when an existing contact point is duplicated, no transfer/refresh is performed.
Definition at line 66 of file SpuContactResult.h.
SpuContactResult::SpuContactResult | ( | ) |
Definition at line 27 of file SpuContactResult.cpp.
|
virtual |
Definition at line 34 of file SpuContactResult.cpp.
|
virtual |
Implements btDiscreteCollisionDetectorInterface::Result.
Definition at line 189 of file SpuContactResult.cpp.
void SpuContactResult::flush | ( | ) |
Definition at line 221 of file SpuContactResult.cpp.
|
inline |
Definition at line 85 of file SpuContactResult.h.
void SpuContactResult::setContactInfo | ( | btPersistentManifold * | spuManifold, |
ppu_address_t | manifoldAddress, | ||
const btTransform & | worldTrans0, | ||
const btTransform & | worldTrans1, | ||
btScalar | restitution0, | ||
btScalar | restitution1, | ||
btScalar | friction0, | ||
btScalar | friction01, | ||
bool | isSwapped | ||
) |
Definition at line 61 of file SpuContactResult.cpp.
|
virtual |
setShapeIdentifiersA/B provides experimental support for per-triangle material / custom material combiner
Implements btDiscreteCollisionDetectorInterface::Result.
Definition at line 74 of file SpuContactResult.cpp.
|
virtual |
Implements btDiscreteCollisionDetectorInterface::Result.
Definition at line 79 of file SpuContactResult.cpp.
void SpuContactResult::writeDoubleBufferedManifold | ( | btPersistentManifold * | lsManifold, |
btPersistentManifold * | mmManifold | ||
) |
only write back the contact information on SPU. Other platforms avoid copying, and use the data in-place see SpuFakeDma.cpp 'cellDmaLargeGetReadOnly'
Definition at line 174 of file SpuContactResult.cpp.
|
private |
Definition at line 79 of file SpuContactResult.h.
|
private |
Definition at line 74 of file SpuContactResult.h.
|
private |
Definition at line 75 of file SpuContactResult.h.
|
private |
Definition at line 77 of file SpuContactResult.h.
|
private |
Definition at line 70 of file SpuContactResult.h.
|
private |
Definition at line 73 of file SpuContactResult.h.
|
private |
Definition at line 68 of file SpuContactResult.h.
|
private |
Definition at line 69 of file SpuContactResult.h.
|
private |
Definition at line 72 of file SpuContactResult.h.