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

Method getVolume

include/reactphysics3d/collision/shapes/BoxShape.h:233–235  ·  view source on GitHub ↗

Compute and return the volume of the collision shape

Source from the content-addressed store, hash-verified

231
232// Compute and return the volume of the collision shape
233RP3D_FORCE_INLINE decimal BoxShape::getVolume() const {
234 return 8 * mHalfExtents.x * mHalfExtents.y * mHalfExtents.z;
235}
236
237// Return the string representation of the shape
238RP3D_FORCE_INLINE std::string BoxShape::to_string() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected