Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Good Morning. I am learning a lot. But could I ask for help on one thing that as even confused me in Inventor. INSIDE of a main routine, I created an AnimtorRotation and attached it to a scene node. NOW, inside of a keyboard call back, I want to change the speed. I know I COULD do this: axleSceneNode.Rot.X += 1.0 But that is a ONE time change in the ANGLE. I want to change the speed. The speed is not a field like Rot.x is. And this is where my ignorance begins (I am a mechanical engineer learning this). BELOW is what I want to do. I know it is wrong, but could someone tell me how to change the SPEED inside a call back function SIMILAR to this intent: document. = function(event) { var key = String.fromCharCode(event.keyCode); if (key == 'F' && axleSceneNode) { axleSceneNode.AnimatorRotation.Vect3d.Y += 0.1; } engine.handleKeyDown(event); }; |
||||
|
You could do it like this (this is not documented, but working):
|
|