MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / axisBoxTest

Method axisBoxTest

src/game/CollisionManager.cpp:161–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159
160
161const ObsList* CollisionManager::axisBoxTest(const Extents& exts) {
162 if (root == NULL) {
163 return &EmptyList;
164 }
165
166 FullPad.count = 0;
167
168 // get the list
169 root->axisBoxTest(exts);
170
171 // clear the collisionState on the obstacles
172 for (int i = 0; i < FullPad.count; i++) {
173 FullPad.list[i]->collisionState = false;
174 }
175
176 return &FullPad;
177}
178
179
180const ObsList* CollisionManager::cylinderTest(const fvec3& pos,

Callers 4

cylinderTestMethod · 0.80
crossesTeleporterMethod · 0.80
getProximityMethod · 0.80
GetObstaclesInBoxMethod · 0.80

Calls 2

addToFullPadListFunction · 0.85
touchesMethod · 0.80

Tested by

no test coverage detected