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

Method IsVisible

Source/Physics/DebugDraw.cpp:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29DebugDraw::~DebugDraw() { }
30
31bool DebugDraw::IsVisible(Body* body) {
32 if (!body) return true;
33 Node* owner = s_cast<Node*>(body->getOwner());
34 return body->isVisible() && (owner == nullptr || (owner->isVisible() && (owner->getParent() == nullptr || owner->getParent()->isVisible())));
35}
36
37void DebugDraw::DrawPolygon(const pr::Length2* oldVertices, int vertexCount, const Color& color) {
38 std::vector<Vec2> vertices(vertexCount + 1);

Callers

nothing calls this directly

Calls 3

getOwnerMethod · 0.45
isVisibleMethod · 0.45
getParentMethod · 0.45

Tested by

no test coverage detected