Add Body:getFixture.

Convenience method to get the first Fixture attached to the body.
This commit is contained in:
Sasha Szpakowski
2023-10-04 20:00:44 -03:00
parent 51b439822b
commit 2702004bb2
3 changed files with 30 additions and 0 deletions
+5
View File
@@ -390,6 +390,11 @@ public:
*/
World *getWorld() const;
/**
* Gets the first Fixture attached to this Body.
**/
Fixture *getFixture() const;
/**
* Get an array of all the Fixtures attached to this Body.
* @return An array of Fixtures.