ksys/phys: Mark BoxShapeParam::createShape as const

This commit is contained in:
Léo Lam
2022-01-31 19:47:59 +01:00
parent e596296799
commit 26bd1402f2
3 changed files with 3 additions and 3 deletions
@@ -7,7 +7,7 @@
namespace ksys::phys {
BoxShape* BoxShapeParam::createShape(sead::Heap* heap) {
BoxShape* BoxShapeParam::createShape(sead::Heap* heap) const {
hkpBoxShape* box = nullptr;
if (auto* storage = util::allocStorage<hkpBoxShape>(heap)) {
const auto radius = convex_radius;
@@ -61,7 +61,7 @@ public:
};
struct BoxShapeParam {
BoxShape* createShape(sead::Heap* heap);
BoxShape* createShape(sead::Heap* heap) const;
sead::Vector3f extents;
sead::Vector3f translate;