mirror of https://github.com/zeldaret/botw.git
ksys/phys: Mark BoxShapeParam::createShape as const
This commit is contained in:
parent
e596296799
commit
26bd1402f2
|
|
@ -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.
|
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue