Constructor
| 35 | |
| 36 | // Constructor |
| 37 | RigidBodyComponents::RigidBodyComponents(MemoryAllocator& allocator) |
| 38 | :Components(allocator, sizeof(Entity) + sizeof(RigidBody*) + |
| 39 | sizeof(bool) + sizeof(bool) + sizeof(decimal) + sizeof(BodyType) + |
| 40 | sizeof(Vector3) + sizeof(Vector3) + sizeof(Vector3) + |
| 41 | sizeof(Vector3) + sizeof(decimal) + sizeof(decimal) + |
| 42 | sizeof(decimal) + sizeof(decimal) + sizeof(Vector3) + |
| 43 | sizeof(Vector3) + + sizeof(Matrix3x3) + sizeof(Vector3) + sizeof(Vector3) + |
| 44 | sizeof(Vector3) + sizeof(Vector3) + sizeof(Vector3) + |
| 45 | sizeof(Quaternion) + sizeof(Vector3) + sizeof(Vector3) + |
| 46 | sizeof(bool) + sizeof(bool) + sizeof(Array<Entity>) + sizeof(Array<uint>) + |
| 47 | sizeof(Vector3) + sizeof(Vector3), 31 * GLOBAL_ALIGNMENT) { |
| 48 | |
| 49 | } |
| 50 | |
| 51 | // Allocate memory for a given number of components |
| 52 | void RigidBodyComponents::allocate(uint32 nbComponentsToAllocate) { |
nothing calls this directly
no outgoing calls
no test coverage detected