CollisionComponent2D: Rename Align to Center (and make it take a vector)

This commit is contained in:
Lynix
2019-03-26 21:02:31 +01:00
parent 23887cc519
commit 59dffe1a7b
2 changed files with 24 additions and 8 deletions

View File

@@ -28,12 +28,12 @@ namespace Ndk
CollisionComponent2D(const CollisionComponent2D& collision);
~CollisionComponent2D() = default;
void Align(const Nz::Rectf& aabb);
Nz::Rectf GetAABB() const;
const Nz::Collider2DRef& GetGeom() const;
const Nz::Vector2f& GetGeomOffset() const;
void Recenter(const Nz::Vector2f& origin);
void SetGeom(Nz::Collider2DRef geom);
void SetGeomOffset(const Nz::Vector2f& geomOffset);