update blobs

This commit is contained in:
2026-05-19 04:02:46 +02:00
parent c060be79e8
commit 3d2fc0a3b1
3 changed files with 35 additions and 36 deletions
+17 -4
View File
@@ -67,10 +67,20 @@ virtual void updatePhysics() {
}
virtual void registerWithGroup();
virtual void unregisterFromGroup();
void updateCenteredDeformMatrix();
virtual void unregisterFromGroup();
void updateCenteredDeformMatrix();
BlobGroup* m_group = nullptr;
void setExpandedRect(const QRectF& rect) {
m_expandedRect = rect;
}
const QRectF& expandedRect() const {
return m_expandedRect;
}
bool hasExpandedRect() const {
return m_hasExpandedRect;
}
BlobGroup* m_group = nullptr;
qreal m_radius = 0;
QMatrix4x4 m_deformMatrix; // identity by default
QMatrix4x4 m_centeredDeformMatrix;
@@ -88,5 +98,8 @@ float m_pendingDy = 0;
bool m_cachedHasInverted = false;
float m_cachedInvertedRadius = 0;
float m_cachedInvertedOuter[4] = {};
float m_cachedInvertedInner[4] = {};
float m_cachedInvertedInner[4] = {};
QRectF m_expandedRect;
bool m_hasExpandedRect = false;
};