Files
Seele/src/Engine/Component/ShapeBase.h
T
2024-06-09 12:20:53 +02:00

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