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

Method Entity

src/engine/Entity.cpp:40–45  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

38
39// Constructor
40Entity::Entity(uint32 index, uint32 generation)
41 :id((index & ENTITY_INDEX_MASK) | ((generation & ENTITY_GENERATION_MASK) << ENTITY_INDEX_BITS)) {
42
43 assert(getIndex() == index);
44 assert(getGeneration() == generation);
45}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected