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

Method getLocalBounds

src/collision/shapes/ConcaveMeshShape.cpp:276–285  ·  view source on GitHub ↗

Return the local bounds of the shape in x, y and z directions. This method is used to compute the AABB of the box * @param min The minimum bounds of the shape in local-space coordinates * @param max The maximum bounds of the shape in local-space coordinates */

Source from the content-addressed store, hash-verified

274 * @param max The maximum bounds of the shape in local-space coordinates
275 */
276AABB ConcaveMeshShape::getLocalBounds() const {
277
278 // Get the AABB of the whole tree
279 AABB aabb = mTriangleMesh->getBounds();
280
281 // Apply the scale factor
282 aabb.applyScale(mScale);
283
284 return aabb;
285}
286
287// Return the integer data of leaf node of the dynamic AABB tree
288int32 ConcaveMeshShape::getDynamicAABBTreeNodeDataInt(int32 nodeID) const {

Callers

nothing calls this directly

Calls 1

applyScaleMethod · 0.80

Tested by

no test coverage detected