Implementing basic physics

This commit is contained in:
Dynamitos
2022-11-29 16:34:42 +01:00
parent 3d3e264867
commit 1e04da963d
39 changed files with 1999 additions and 145 deletions
+13
View File
@@ -0,0 +1,13 @@
#include "Collider.h"
using namespace Seele;
using namespace Seele::Component;
Collider Collider::transform(const Transform& transform) const
{
return Collider{
.type = this->type,
.boundingbox = this->boundingbox.getTransformedBox(transform.toMatrix()),
.physicsMesh = this->physicsMesh.transform(transform),
};
}