Add missing definition of PhysicsBody::getFirstShape (Revert part of #13923) (#16458)

This commit is contained in:
mogemimi 2016-08-30 11:23:14 +09:00 committed by Ricardo Quesada
parent 91efab2ba7
commit 58ede40ed9
1 changed files with 7 additions and 0 deletions

View File

@ -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.
*