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

Method getLocalBounds

src/collision/shapes/HeightFieldShape.cpp:50–54  ·  view source on GitHub ↗

Return the local bounds of the shape in x, y and z directions. * @return The AABB with the min/max bounds of the shape */

Source from the content-addressed store, hash-verified

48 * @return The AABB with the min/max bounds of the shape
49 */
50AABB HeightFieldShape::getLocalBounds() const {
51 AABB aabb = mHeightField->getBounds();
52 aabb.applyScale(mScale);
53 return aabb;
54}
55
56// Test collision with the triangles of the height field shape. The idea is to use the AABB
57// of the body when need to test and see against which triangles of the height-field we need

Callers

nothing calls this directly

Calls 1

applyScaleMethod · 0.80

Tested by

no test coverage detected