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

Method isValid

include/reactphysics3d/engine/EntityManager.h:74–76  ·  view source on GitHub ↗

Return true if the entity is still valid (not destroyed)

Source from the content-addressed store, hash-verified

72
73// Return true if the entity is still valid (not destroyed)
74RP3D_FORCE_INLINE bool EntityManager::isValid(Entity entity) const {
75 return mGenerations[entity.getIndex()] == entity.getGeneration();
76}
77
78}
79

Callers

nothing calls this directly

Calls 2

getIndexMethod · 0.80
getGenerationMethod · 0.80

Tested by

no test coverage detected