MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / remove

Method remove

Source/Physics/Sensor.cpp:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void Sensor::remove(Body* body) {
41 auto value = Value::alloc(body);
42 _sensedBodies->fastRemove(value.get());
43 if (_uniqueBodies.erase(body) > 0 && bodyLeave) {
44 bodyLeave(body, _tag);
45 }
46}
47
48bool Sensor::contains(Body* body) {
49 ARRAY_START(Body, item, _sensedBodies) {

Callers

nothing calls this directly

Calls 4

fastRemoveMethod · 0.80
getMethod · 0.65
allocFunction · 0.50
eraseMethod · 0.45

Tested by

no test coverage detected