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

Method BodyComponents

src/components/BodyComponents.cpp:36–40  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

34
35// Constructor
36BodyComponents::BodyComponents(MemoryAllocator& allocator)
37 :Components(allocator, sizeof(Entity) + sizeof(Body*) + sizeof(Array<Entity>) +
38 sizeof(bool) + sizeof(void*) + sizeof(bool), 6 * GLOBAL_ALIGNMENT) {
39
40}
41
42// Allocate memory for a given number of components
43void BodyComponents::allocate(uint32 nbComponentsToAllocate) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected