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

Method FixedJointComponents

src/components/FixedJointComponents.cpp:36–43  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

34
35// Constructor
36FixedJointComponents::FixedJointComponents(MemoryAllocator& allocator)
37 :Components(allocator, sizeof(Entity) + sizeof(FixedJoint*) + sizeof(Vector3) +
38 sizeof(Vector3) + sizeof(Vector3) + sizeof(Vector3) +
39 sizeof(Matrix3x3) + sizeof(Matrix3x3) + sizeof(Vector3) +
40 sizeof(Vector3) + sizeof(Matrix3x3) + sizeof(Matrix3x3) +
41 sizeof(Vector3) + sizeof(Vector3) + sizeof(Quaternion), 15 * GLOBAL_ALIGNMENT) {
42
43}
44
45// Allocate memory for a given number of components
46void FixedJointComponents::allocate(uint32 nbComponentsToAllocate) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected