0
我在使用away3D庫時遇到了一些問題。我想使用AS3DMod對一個立方體應用折彎,但我似乎無法得到它的工作。當我想要彎曲他們時,我的立方體會被肢解:p他們向各個方向彎曲,我似乎無法在彎曲中找到圖案。任何人有任何經驗(或建議)與此?提前致謝。如何使用AS3DMod和Away3D在立方體上應用折彎?
private function bend(e:MouseEvent3D):void
{
//We get the current target.
var _target:Cube = e.target as Cube;
//We create a new modifier.
var _bend:Bend = new Bend(2);
_bend.constraint = ModConstant.LEFT;
_bend.bendAxis = ModConstant.LEFT;
var _mod:ModifierStack = new ModifierStack(new LibraryAway3d(), _target);
_mod.addModifier(_bend);
//We play the modification.
_mod.apply();
//We render the scene.
render();
}
我現在不需要它了,但答案真的很感謝,因爲它真的讓我感到困擾,我無法啓動它並運行;我會看看它,希望我能夠在未來的項目中使用它);非常感謝! – 2011-07-20 21:25:21