updateWorldTransform method
void
updateWorldTransform(
)
Implementation
@mustCallSuper
void updateWorldTransform() {
_renderOpacity = opacity;
if (parent is WorldTransformComponent) {
var parentNode = parent as WorldTransformComponent;
_renderOpacity *= parentNode.childOpacity;
Mat2D.multiply(worldTransform, parentNode.worldTransform, transform);
} else {
Mat2D.copy(worldTransform, transform);
}
if (_constraints.isNotEmpty) {
for (final constraint in _constraints) {
constraint.constrain(this);
}
}
}