Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi, First off thanks for copperlicht. i've used irrlicht before and love the way it works. but i have a question :) i've made a custom animation node whos purpose is to get keyboard input and then rotate the node depending on the keypress. I know there is a rotator animator already but the animateNode behavior is not what I want ( or at least i think its not.. might experiment with it ). I know that the animateNode function is being called, but the event is not ( i dont see my console log messages ). Do i need to register the animator? here's my code for the custom animator:
im not sure the function will work the way i want, but thats besides the point. I should be seeing console.log messages on a key press, but im not. thanks! |
||||
|
Hi, you need to do key and mouse management yourself in this case, but if you prefer relying on CopperLicht for that, there are some private function where you can register your animator. From your animator, call for example this:
|
||||
|
Thanks for a response! :) I had to register both keyDown and keyUp events before it worked, but it worked. fyi , when i only registered keyUp i got the following message: this.RegisteredAnimatorsForKeyDown[a] is undefined when i only register keyDown it wont work at all. thank you very much! |
||||
|
|