Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
When I add custom scene node as you showed in tutorial03 the CL3D.Animator On Click is not working for this node. var mynode = new MySceneNode(engine); (...) mynode.addAnimator(animator); However if I create cube object CL3D.CubeSceneNode CL3D.Animator On Click works for a cube. Is that a way to use this type of the animator for objects created like you showed in the tutorial? |
||||
|
For me, animators work with my own custom scene nodes. Are you sure you derived it from SceneNode, using MySceneNode.prototype = new CL3D.SceneNode(); ? |
||||
|
Look here: http://www.pinerly.com/deck/3d and make a source view. I did like that (I had to):
So I am encompasing the arrows you can click at the end of the corridor with transparent (but visible) cube. Very poor method. I dont just understand why : arrow_left.addAnimator(animator_cl); doesnt work? |
||||
|
I think the CL3D.Animator doesn't do anything by default. You need to use one of the specializations, depending on what you want to do. Like var animator_cl = new CL3D.AnimatorRotation(new CL3D.Vect3d(1,0,0)); |
||||
|
If I get rid of the cube and replace the code;
with var animator_cl = new CL3D.Animator On Click(engine.getScene(), engine, SlideLeft); it doesnt work :) also I dont also know why I cannot write normally CL3D.Animator On Click on that forum because its being replaced by CL3D.Animator causing misunderstang :) LOL |
||||
|
Yes, sorry about the problem with the forum, we once had some lame forum hijacking attempts and the forum now is a bit paranoid :) Probably this might help you with your problem, there are some things you need to do in order to make on-click animators work with your own scene node: http://www.ambiera.com/forum.php... |
||||
|
thanks niko :) this helps. |
|