MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / testOverlap

Method testOverlap

src/engine/PhysicsWorld.cpp:217–219  ·  view source on GitHub ↗

Return true if two bodies overlap Use this method if you are not interested in contacts but if you simply want to know if the two bodies overlap. If you want to get the contacts, you need to use the testCollision() method instead. * @param body1 Pointer to the first body * @param body2 Pointer to a second body * @return True if the two bodies overlap */

Source from the content-addressed store, hash-verified

215 * @return True if the two bodies overlap
216 */
217bool PhysicsWorld::testOverlap(Body* body1, Body* body2) {
218 return mCollisionDetection.testOverlap(body1, body2);
219}
220
221// Return the current world-space AABB of given collider
222/**

Calls

no outgoing calls