Commit 363be946 authored by suhuiguang's avatar suhuiguang

1.路线及粒子基本属性的控制(位置、旋转、缩放)

parent 0dc1f69b
...@@ -124,7 +124,8 @@ class StageActuator extends Component { ...@@ -124,7 +124,8 @@ class StageActuator extends Component {
position: fmtData.basicAttr.position, position: fmtData.basicAttr.position,
rotation: fmtData.basicAttr.rotation, rotation: fmtData.basicAttr.rotation,
scale: fmtData.basicAttr.scale, scale: fmtData.basicAttr.scale,
data: particles[fmtData.reference] data: particles[fmtData.reference],
visible: fmtData.basicAttr.visible
}); });
// 添加到 parser 的 cache 中,以供动画使用 // 添加到 parser 的 cache 中,以供动画使用
modelParser.cacheIn(fmtData.eid, particle); modelParser.cacheIn(fmtData.eid, particle);
...@@ -132,7 +133,11 @@ class StageActuator extends Component { ...@@ -132,7 +133,11 @@ class StageActuator extends Component {
if (fmtData.type === ELEMENT_TYPE.PEN) { if (fmtData.type === ELEMENT_TYPE.PEN) {
const pen = this.a3dRef.newPen({ const pen = this.a3dRef.newPen({
...routePath[fmtData.reference], ...routePath[fmtData.reference],
userData: fmtData userData: fmtData,
position: fmtData.basicAttr.position,
rotation: fmtData.basicAttr.rotation,
scale: fmtData.basicAttr.scale,
visible: fmtData.basicAttr.visible
}); });
// 添加到 parser 的cache 中,以供动画使用 // 添加到 parser 的cache 中,以供动画使用
modelParser.cacheIn(fmtData.eid, pen); modelParser.cacheIn(fmtData.eid, pen);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment