feat: add spherecollidor

This commit is contained in:
2026-06-24 15:55:57 +02:00
parent 9d3d14a54d
commit 81ab2a8a4a
6 changed files with 85 additions and 25 deletions
@@ -2,7 +2,7 @@
#include <algorithm>
#include <destrum/Components/Collider.h>
#include <destrum/Components/Physics/Collider.h>
class SphereCollider final : public Collider {
public:
@@ -10,6 +10,8 @@ public:
: Collider(owner)
, m_Radius(radius) {}
void Update() override {}
[[nodiscard]] PhysicsShapeDesc BuildPhysicsShape() const override {
return PhysicsShapeDesc::Sphere(m_Radius, m_CenterOffset, m_IsTrigger);
}