|
I need help with my airplane script. my airplane wont move at all so can anyone see the problem with it
(comments are locked)
|
|
A few ideas for you.
Controller.Move is calling its own version of the function so maybe you were trying to override it? I would appear that you are trying to cause the motion with this function, but you are never calling it. To call it, all's you have to do is say This might be the most important piece. Character Controllers are not designed for planes so I would not recommend using one. A mesh collider with a rigidbody or box collider would give you more realistic results.
(comments are locked)
|
|
To get your code to work you need to apply forces to your object. This is done via a manipulation to one or more rigid bodies. There is a ton of resources on this in the forums. Just do a search for "airplane" or "Aircraft" or biplane. http://forum.unity3d.com/viewtopic.php?t=52967&highlight=aircraft
(comments are locked)
|

If would be helpful if you formatted your code to read easier. Select all of it and hit the 1 & 0's button in the edit panel. It will shift the whole thing over 4 spaces.
Fixed the code formatting - most of it, anyway. :)