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

Method destroyCapsuleShape

src/engine/PhysicsCommon.cpp:397–402  ·  view source on GitHub ↗

Destroy a capsule collision shape * @param capsuleShape A pointer to the capsule shape to destroy */

Source from the content-addressed store, hash-verified

395 * @param capsuleShape A pointer to the capsule shape to destroy
396 */
397void PhysicsCommon::destroyCapsuleShape(CapsuleShape* capsuleShape) {
398
399 deleteCapsuleShape(capsuleShape);
400
401 mCapsuleShapes.remove(capsuleShape);
402}
403
404// Delete a capsule collision shape
405/**

Callers 5

~TestPointInsideMethod · 0.80
~TestRaycastMethod · 0.80
~TestWorldQueriesMethod · 0.80
~DumbbellMethod · 0.80
~CapsuleMethod · 0.80

Calls 1

removeMethod · 0.45

Tested by 3

~TestPointInsideMethod · 0.64
~TestRaycastMethod · 0.64
~TestWorldQueriesMethod · 0.64