mirror of https://github.com/axmolengine/axmol.git
This commit is contained in:
parent
91efab2ba7
commit
58ede40ed9
|
@ -200,6 +200,13 @@ public:
|
|||
*/
|
||||
inline const Vector<PhysicsShape*>& getShapes() const { return _shapes; }
|
||||
|
||||
/**
|
||||
* Get the first shape of the body shapes.
|
||||
*
|
||||
* @return The first shape in this body.
|
||||
*/
|
||||
inline PhysicsShape* getFirstShape() const { return _shapes.size() >= 1 ? _shapes.at(0) : nullptr; }
|
||||
|
||||
/**
|
||||
* get the shape of the body.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue