aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/SimulationController/src/ScElementSimInteraction.h
diff options
context:
space:
mode:
authorsschirm <[email protected]>2017-02-27 16:40:12 +0100
committersschirm <[email protected]>2017-03-01 18:04:26 +0100
commit7840347c32755e94a807f978f1cbb558717ac8cf (patch)
tree295cd3ca93a45f8fcc43cf3cbf3887c0e0c5526b /PhysX_3.4/Source/SimulationController/src/ScElementSimInteraction.h
parentPre-release comments marking end of beta. (diff)
downloadphysx-3.4-7840347c32755e94a807f978f1cbb558717ac8cf.tar.xz
physx-3.4-7840347c32755e94a807f978f1cbb558717ac8cf.zip
PhysX 3.4, APEX 1.4 final release @21757769v3.4.0-rc-2
Diffstat (limited to 'PhysX_3.4/Source/SimulationController/src/ScElementSimInteraction.h')
-rw-r--r--PhysX_3.4/Source/SimulationController/src/ScElementSimInteraction.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/PhysX_3.4/Source/SimulationController/src/ScElementSimInteraction.h b/PhysX_3.4/Source/SimulationController/src/ScElementSimInteraction.h
index 469a1259..daa95c0f 100644
--- a/PhysX_3.4/Source/SimulationController/src/ScElementSimInteraction.h
+++ b/PhysX_3.4/Source/SimulationController/src/ScElementSimInteraction.h
@@ -50,6 +50,10 @@ namespace Sc
// i.e., if this interaction gets deleted, the pair is considered lost
virtual bool isLastFilterInteraction() const { return true; }
+ PX_INLINE void setFilterPairIndex(PxU32 filterPairIndex) { mFilterPairIndex = filterPairIndex; }
+
+ PX_INLINE PxU32 getFilterPairIndex() const { return mFilterPairIndex; }
+
protected:
PX_INLINE ElementSimInteraction(ElementSim& element0, ElementSim& element1, InteractionType::Enum type, PxU8 flags);
virtual ~ElementSimInteraction() {}
@@ -58,6 +62,7 @@ namespace Sc
private:
ElementSim& mElement0;
ElementSim& mElement1;
+ PxU32 mFilterPairIndex;
};
} // namespace Sc
@@ -67,7 +72,8 @@ namespace Sc
PX_INLINE Sc::ElementSimInteraction::ElementSimInteraction(ElementSim& element0, ElementSim& element1, InteractionType::Enum type, PxU8 flags) :
Interaction (element0.getActor(), element1.getActor(), type, flags),
mElement0 (element0),
- mElement1 (element1)
+ mElement1 (element1),
+ mFilterPairIndex(INVALID_FILTER_PAIR_INDEX)
{
}