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

Method hasComponent

include/reactphysics3d/components/Components.h:142–144  ·  view source on GitHub ↗

Return true if there is a component for a given entity

Source from the content-addressed store, hash-verified

140
141// Return true if there is a component for a given entity
142RP3D_FORCE_INLINE bool Components::hasComponent(Entity entity) const {
143 return mMapEntityToComponentIndex.containsKey(entity);
144}
145
146// Return true if there is a component for a given entity and if so set the entity index
147RP3D_FORCE_INLINE bool Components::hasComponentGetIndex(Entity entity, uint32& entityIndex) const {

Callers 4

setBodyDisabledMethod · 0.80
setJointDisabledMethod · 0.80
destroyJointMethod · 0.80

Calls 1

containsKeyMethod · 0.80

Tested by

no test coverage detected