27 if (_pair.isDeletedActor[0]) {
28 physx_cat.warning() <<
"actor A has been deleted" << std::endl;
32 NxActor *actorPtr = _pair.actors[0];
33 return (actorPtr ==
nullptr) ? nullptr : (
PhysxActor *)actorPtr->userData;
42 if (_pair.isDeletedActor[1]) {
43 physx_cat.warning() <<
"actor B has been deleted" << std::endl;
47 NxActor *actorPtr = _pair.actors[1];
48 return (actorPtr ==
nullptr) ? nullptr : (
PhysxActor *)actorPtr->userData;
57 return _pair.isDeletedActor[0];
66 return _pair.isDeletedActor[1];
106 unsigned int PhysxContactPair::
107 get_num_contact_points() {
109 if (_contacts.size() == 0) {
110 NxContactStreamIterator it(_pair.stream);
111 while(it.goNextPair()) {
112 while(it.goNextPatch()) {
113 while(it.goNextPoint()) {
116 _contacts.push_back(cp);
122 return _contacts.size();
134 nassertr(idx < _contacts.size(), PhysxContactPoint::empty());
135 return _contacts[idx];
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static LVector3f nxVec3_to_vec3(const NxVec3 &v)
Converts from NxVec3 to LVector3f.
Actors are the main simulation objects.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.