20 bool PhysxOverlapReport::
21 onEvent(NxU32 nbEntities, NxShape **entities) {
23 for (
unsigned int i=0; i<nbEntities; i++) {
25 _overlaps.push_back(shape);
34 unsigned int PhysxOverlapReport::
35 get_num_overlaps()
const {
37 return _overlaps.size();
46 _iterator = _overlaps.begin();
47 return get_next_overlap();
56 if (_iterator != _overlaps.end()) {
68 get_overlap(
unsigned int idx) {
70 nassertr(idx < get_num_overlaps(),
nullptr);
71 return _overlaps[idx];
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Abstract base class for shapes.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.