mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
Add Body:getFixture.
Convenience method to get the first Fixture attached to the body.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user