jox, you saved me finaly, it is as you sad, old function is the problem and your code is solving that...
I also found source of my trouble, dll was compiled right, it was one matrix4.h file lost in my include dir so DevC++ used that one instead one from Irrlicht dir.
Now I can move further in my project ...I owe you that
Space Flight Demo
-
- Posts: 386
- Joined: Thu Sep 25, 2003 12:43 pm
- Contact:
PWAUVAN >> No I was newer releasing source. Some usefull functions can be found at http://irrlicht.sourceforge.net/phpBB2/ ... php?t=4680
If you are interested I may try to dig it up from old hardisk and send it to you. However it is quit old and it will not compile correctly with newer versions of Irrlicht.
If you are interested I may try to dig it up from old hardisk and send it to you. However it is quit old and it will not compile correctly with newer versions of Irrlicht.
If you wanted to go through the effort to find the source for me I would greatly appreciate it, however, if it is any trouble then I won't be heartbroken at all if you don't want to. mainly I am having issues getting the ship to respond to more than one command at a time (i.e banking left and moving up at the same time if the left and up buttons are pressed together) as well as getting the camera, set as a child to the player node, to rotate like the ship (cockpit cam) I put an invisible node about 500 units in front of each ship I create which I can use to determine the direction of the ship and use when firing projectiles (this also allows the ship to fire in different directions that straight forward, I just move the child invisible node relative the the parent ship) but even though I set the child invisible node's position as the target of the child camera, it doesn't seem to respond nor does it rotate with the ship when it rolls or pitches. really the only thing it does right is update its position to be the ship's position. Your demo seemed to handle multiple keys much better than my current project and the cockpit cam does exactly what I am looking for.
PWAUVAN (Programmer With An Unnecessarily Verbose Acronym Name
Link I was posting contain makeCockpit function which control camera and move function which move ship in direction it faces. Can be used also for firing bullet.
If you go to the second page of that post you can find small demo under EXAMPLE CODE. Just replace node1 with your ship and adjust distances if yur model is much bigger than cube scene node used in example.
Example also contain event reciever which can handle more than one keyinput at the time, so ship will respond to several key commands.
All those functions can be easily built in to classes so you may create ship class and then use for example function shipnode->turn(angle).
If this is not enough just ask once more and Ill try to search for sourcecode.
If you go to the second page of that post you can find small demo under EXAMPLE CODE. Just replace node1 with your ship and adjust distances if yur model is much bigger than cube scene node used in example.
Example also contain event reciever which can handle more than one keyinput at the time, so ship will respond to several key commands.
All those functions can be easily built in to classes so you may create ship class and then use for example function shipnode->turn(angle).
If this is not enough just ask once more and Ill try to search for sourcecode.
Thank you, the cockpit code worked out rather nicely. I do have a ship class which contains the node as well as information such as the firing rate of its lasers, the "target convergance node" (that invisible node I talked about earlier) enemies, friends, etc, whihc is then inheritable to different kinds of ships. I modified the cockpit cam functionality to allow the cockpit view to me moved independant of the ship (within specific boundaries). this is cool because the lasers also fire in the direction of the cam giving some targeting freedom other than straight forward.
PWAUVAN (Programmer With An Unnecessarily Verbose Acronym Name