diff --git a/src/Physics/ShapedObject.h b/src/Physics/ShapedObject.h index fceee5c3b..e7e2aac9e 100644 --- a/src/Physics/ShapedObject.h +++ b/src/Physics/ShapedObject.h @@ -56,8 +56,15 @@ template class PHYSICS_EXPORT ShapedObject: public Scen inline AbstractShape* shape() { return _shape; } inline const AbstractShape* shape() const { return _shape; } /**< @overload */ - /** @brief Set object shape */ - void setShape(AbstractShape* shape) { _shape = shape; } + /** + * @brief Set object shape + * @return Pointer to self (for method chaining) + */ + inline ShapedObject* setShape(AbstractShape* shape) { + _shape = shape; + setDirty(); + return this; + } /** * @copybrief SceneGraph::AbstractObject::setDirty()