MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / Interaction

Method Interaction

physx/source/simulationcontroller/src/ScInteraction.cpp:37–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35using namespace physx;
36
37Sc::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
51void Sc::Interaction::addToDirtyList()
52{

Callers

nothing calls this directly

Calls 2

to8Function · 0.85
getSceneMethod · 0.45

Tested by

no test coverage detected