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

Method ColliderComponents

src/components/ColliderComponents.cpp:37–43  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

35
36// Constructor
37ColliderComponents::ColliderComponents(MemoryAllocator& allocator)
38 :Components(allocator, sizeof(Entity) + sizeof(Entity) + sizeof(Collider*) + sizeof(int32) +
39 sizeof(Transform) + sizeof(CollisionShape*) + sizeof(unsigned short) +
40 sizeof(unsigned short) + sizeof(Transform) + sizeof(Array<uint64>) + sizeof(bool) +
41 sizeof(bool) + sizeof(bool) + sizeof(bool) + sizeof(Material), 15 * GLOBAL_ALIGNMENT) {
42
43}
44
45// Allocate memory for a given number of components
46void ColliderComponents::allocate(uint32 nbComponentsToAllocate) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected