forked from Dynamitos/Seele
23 lines
593 B
C++
23 lines
593 B
C++
#pragma once
|
|
#include "Containers/Array.h"
|
|
#include "Graphics/DebugVertex.h"
|
|
#include "Transform.h"
|
|
|
|
|
|
namespace Seele {
|
|
namespace Component {
|
|
struct ShapeBase {
|
|
ShapeBase();
|
|
ShapeBase(Array<Vector> vertices, Array<uint32> indices);
|
|
ShapeBase transform(const Component::Transform& transform) const;
|
|
void addCollider(Array<Vector> vertices, Array<uint32> indices, Matrix4 matrix);
|
|
void visualize() const;
|
|
Vector centerOfMass;
|
|
float mass;
|
|
Matrix3 bodyInertia;
|
|
Array<Vector> vertices;
|
|
Array<uint32> indices;
|
|
};
|
|
} // namespace Component
|
|
} // namespace Seele
|