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
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
3 changed files with 3 additions and 3 deletions

View File

@ -83547,7 +83547,7 @@ Address,Quality,Size,Name
0x0000007100fa9fac,O,000120,_ZNK4ksys4phys17RigidBodyAccessor16getPointVelocityEPN4sead7Vector3IfEERKS4_
0x0000007100faa024,O,000020,_ZNK4ksys4phys17RigidBodyAccessor13getTimeFactorEv
0x0000007100faa038,O,000064,_ZNK4ksys4phys17RigidBodyAccessor20getDeltaCenterOfMassEPN4sead7Vector3IfEES5_
0x0000007100faa078,O,000564,_ZN4ksys4phys13BoxShapeParam11createShapeEPN4sead4HeapE
0x0000007100faa078,O,000564,_ZNK4ksys4phys13BoxShapeParam11createShapeEPN4sead4HeapE
0x0000007100faa2ac,U,000224,
0x0000007100faa38c,U,000048,
0x0000007100faa3bc,O,000364,_ZN4ksys4phys8BoxShapeC1ERKNS0_13BoxShapeParamEP11hkpBoxShapeP23hkpConvexTransformShape

Can't render this file because it is too large.

View File

@ -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;

View File

@ -61,7 +61,7 @@ public:
};
struct BoxShapeParam {
BoxShape* createShape(sead::Heap* heap);
BoxShape* createShape(sead::Heap* heap) const;
sead::Vector3f extents;
sead::Vector3f translate;