Implementing basic physics
This commit is contained in:
@@ -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),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user