@gamelearn/arcade-components 2.13.1 → 2.13.3
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.
|
@@ -97,6 +97,7 @@ var ConversationalComponent = function ConversationalComponent(_ref) {
|
|
|
97
97
|
lodSettings: lodSettings,
|
|
98
98
|
currentMessage: currentMessage,
|
|
99
99
|
slots: parsedCharacters,
|
|
100
|
+
emitEvent: emitEvent,
|
|
100
101
|
flex: true
|
|
101
102
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
102
103
|
className: "conversation--body"
|
|
@@ -135,6 +135,7 @@ function Panel(_ref) {
|
|
|
135
135
|
object.traverse(function (obj) {
|
|
136
136
|
if (obj.type === 'Bone' && (obj.name.toLowerCase() === 'l_eye' || obj.name.toLowerCase() === 'eye_l')) {
|
|
137
137
|
var leftEyeVector = new _three.Vector3().setFromMatrixPosition(obj.matrixWorld);
|
|
138
|
+
cameraRef.current.position.setX(leftEyeVector.x);
|
|
138
139
|
cameraRef.current.position.setY(leftEyeVector.y - 0.5);
|
|
139
140
|
}
|
|
140
141
|
});
|