| 35 | using namespace physx; |
| 36 | |
| 37 | Sc::Interaction::Interaction(ActorSim& actor0, ActorSim& actor1, InteractionType::Enum type, PxU8 flags) : |
| 38 | mActor0 (actor0), |
| 39 | mActor1 (actor1), |
| 40 | mSceneId (PX_INVALID_INTERACTION_SCENE_ID), |
| 41 | mActorId0 (PX_INVALID_INTERACTION_ACTOR_ID), |
| 42 | mActorId1 (PX_INVALID_INTERACTION_ACTOR_ID), |
| 43 | mInteractionType (Ps::to8(type)), |
| 44 | mInteractionFlags (flags), |
| 45 | mDirtyFlags (0) |
| 46 | { |
| 47 | PX_ASSERT_WITH_MESSAGE(&actor0.getScene() == &actor1.getScene(),"Cannot create an interaction between actors belonging to different scenes."); |
| 48 | PX_ASSERT(PxU32(type)<256); // PT: type is now stored on a byte |
| 49 | } |
| 50 | |
| 51 | void Sc::Interaction::addToDirtyList() |
| 52 | { |