Closed Nawias closed 1 year ago
I don't know if I'm reading this right, but it seems to me that Fixture->shape is not pushed to lua if its any of the types: EdgeShape, ChainShape,CircleShape and PolygonShape - but these all should be usable shapes. As to why it would return a fixture - I have no idea.
It's not pushing a fixture. However, it is only pushing the base Shape class. I must have overlooked this on accident, as this module was a major pain to do. I think all that would need to be done is casting the shape accordingly to its type and pushing it to lua.
But if that was the case, then Fixture:getShape():type() would return 'Shape', not 'Fixture', right?
Hm, that might also be an oversight on my part. I'll have to check if I accidentally copypasta'd the Type from Fixture to Shape - or registering Shape accidentally uses the wrong Type.
Software Version
2.4.x (latest compiled after quad fix)
What Happened?
As in title, Fixture:getShape() returns a fixture.
What was Expected?
Fixture:getShape() should return Shape associated with the fixture.
Code to Reproduce
Console
Nintendo 3DS
Firmware Version(s)
11.16.0-49E
Custom Firmware Version
11.0
Execution Method
Homebrew Menu
Code of Conduct