diff options
author | Sarper Akdemir <q.sarperakdemir@gmail.com> | 2020-07-27 23:02:48 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-08-20 15:23:01 +0200 |
commit | 51275a633ff5f8aa5843ba1622c701fd7fdda5a0 (patch) | |
tree | 467d166b2ba875267d00a31db6b5f7aa5c2af731 /slideshow/source/inc/box2dtools.hxx | |
parent | e33486189d5af3e651a5bc2e974b548fc07cc5bc (diff) |
add support for complex shapes in physics animation effects
Makes it possible to represent complex shapes of LibreOffice
in physics animation effects by closely approximating their geometry.
Therefore enables more convincing animation effects.
Change-Id: I807bbde92c143b8c96792b3d8bf9603a31216486
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100432
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'slideshow/source/inc/box2dtools.hxx')
-rw-r--r-- | slideshow/source/inc/box2dtools.hxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/slideshow/source/inc/box2dtools.hxx b/slideshow/source/inc/box2dtools.hxx index 77543ea919e1..474f01c60a63 100644 --- a/slideshow/source/inc/box2dtools.hxx +++ b/slideshow/source/inc/box2dtools.hxx @@ -211,10 +211,9 @@ public: */ Box2DBodySharedPtr makeShapeStatic(const slideshow::internal::ShapeSharedPtr& pShape); - /// Create a static body from the given shape's bounding box - Box2DBodySharedPtr - createStaticBodyFromBoundingBox(const slideshow::internal::ShapeSharedPtr& rShape, - const float fDensity = 1.0f, const float fFriction = 0.3f); + /// Create a static body from the given shape's geometry + Box2DBodySharedPtr createStaticBody(const slideshow::internal::ShapeSharedPtr& rShape, + const float fDensity = 1.0f, const float fFriction = 0.3f); /// Initiate all the shapes in the current slide in the box2DWorld as static ones void |