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

Method destroySphereShape

src/engine/PhysicsCommon.cpp:289–294  ·  view source on GitHub ↗

Destroy a sphere collision shape * @param sphereShape A pointer to the sphere collision shape to destroy */

Source from the content-addressed store, hash-verified

287 * @param sphereShape A pointer to the sphere collision shape to destroy
288 */
289void PhysicsCommon::destroySphereShape(SphereShape* sphereShape) {
290
291 deleteSphereShape(sphereShape);
292
293 mSphereShapes.remove(sphereShape);
294}
295
296// Delete a sphere collision shape
297/**

Callers 5

~TestPointInsideMethod · 0.80
~TestRaycastMethod · 0.80
~TestWorldQueriesMethod · 0.80
~DumbbellMethod · 0.80
~SphereMethod · 0.80

Calls 1

removeMethod · 0.45

Tested by 3

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