ENH: Implement getMasterGeometry
Returns master geometry, defined master in the geometry maps of the objects. Physic geometry will drive the changes to the colliding geometry, which will drive the changes to the visual geometry
|...||...||@@ -36,6 +36,12 @@ CollidingObject::setCollidingGeometry(std::shared_ptr<Geometry> geometry)|
|m_collidingGeometry = geometry;|
getMasterGeometry()is a way to give the geometry that would need to be controlled by the controller, without the need for the controller to know the type of the object (aka no need to cast it based on the object type everytime). By just calling the virtual method
getMasterGeometry()the controller will receive the geometry to transform, without having to worry about what geometry it is: the object will provide the correct geometry. Like explained in my previous comment on the discussion above, doing it through the maps would also work but would make it just more complex.