@gamelearn/arcade-components 0.25.12 → 0.25.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,12 +90,21 @@ var AnimateElement = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref)
90
90
  var action = mixer.clipAction(clip, animationRef.current);
91
91
  action.play();
92
92
 
93
+ if (animationRef.current.brother) {
94
+ animationRef.current.brother.updatePosition();
95
+ }
96
+
93
97
  if (pauseAtStart) {
94
98
  action.paused = true;
95
99
  }
96
100
  }
97
101
  }
98
102
  }, [mixer, animations, pauseAtStart, animationRef]);
103
+ (0, _react.useEffect)(function () {
104
+ if (model.brother) {
105
+ model.brother.updatePosition();
106
+ }
107
+ }, [model, position, rotation, currentProps.scale]);
99
108
  return /*#__PURE__*/_react.default.createElement("group", {
100
109
  visible: props.visible
101
110
  }, enableBounding ? /*#__PURE__*/_react.default.createElement(_BoundingBox.default, _extends({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "license": "Gamelearn",
4
- "version": "0.25.12",
4
+ "version": "0.25.13",
5
5
  "main": "dist/index.js",
6
6
  "files": [
7
7
  "dist",