ok seeing as how i got my bearbones movement script for fighters its time to move on to bigger ships seeing as how i now have a concept i can use for larger ships.
i will post my code in this thread so others can see and learn from what im trying to accomplish i will also use this thread to ask questions about the mechanics of said script.
script outline:
here are the things i want the script to do.
orbit cam around the ship while holding a mouse button down. and nothing is under the mouse pointer.
double click to set the direction that the ship will take. speed will be ajusted by clicking on the speed indicator on the gui.(this will come later right now im just going to put in a quick slider for this nothing fancy till i get to gui. when the user double clicks on a direction the ship rotates to face the direction then moves if in motion continues at the speed while turning.
detects objects in proximity of the ship and avoids them.
the turret script will work on these big ships. the turrets will acuire hostile targets and fire on the one closest to it.
this is just what i want it to do. so now with question on how to atain such a way to do things.
first question about click and point.
i know i am going to need to use raycasting to do this and i can figure out the commands but some questions i need to ask is.
will i need to set up a plain or some kind to check the ray cast hit. or will i be able to just use it seting the distance only?
should i have waypoint marker for when you double click to move? or should i just leave it as behind the sceans? i ask cause i personaly have no care one way or the other.