AI Player Flying
by Richard Devlin · in Torque Game Engine · 01/26/2005 (3:52 am) · 4 replies
Hi, im trying to make it so that the player can fly in a game that I am working on. I have thought of several ways to do this... but dont know how to do any.
1) Make the player move in the direction he is facing. (i think i saw a thread on this, but i cant find it)
2) Rip the code from the flying vehicle source (however the player has to be a player some of the time, so i cant just use a human figure mesh on a flying vehicle)
Any help GREATLY appreciated.
1) Make the player move in the direction he is facing. (i think i saw a thread on this, but i cant find it)
2) Rip the code from the flying vehicle source (however the player has to be a player some of the time, so i cant just use a human figure mesh on a flying vehicle)
Any help GREATLY appreciated.
#2
01/26/2005 (5:22 am)
That's probably where you would find player physics. You mentioned aiplayer though. You should check whether aiplayer has its own physics code or if it inherits the same code as player.
#3
As I like to put it : there are two ways to fly, the simple way and the complex way.
the simple way, as you have guessed would be using the UpdateMove() function. The way to do it can be seen in the Air Control Resource. just need some extra tweaking and up in the sky you go.
Since this is a Player modification, AIPlayers will be able to do it as well.
Now, the complex way requires creating a vehicle and mounting your player ( or AIPlayer ) on them. The problem is : Bots can't drive, they steer the vehicle erraticaly. To correct that, Badguy has created a steering function on this thread, but that only applies to 2D movement. Other guy ( sorry, really forgot his name ), had achieved robotic-controled-3D-flight. You could search for AIVehicle, AIFlyingVehicle, AIGameConnection.
HTH
01/26/2005 (9:30 am)
Flight is a recurrent topic and I have a Flight Resource in my ToDo List, but unfortunately it's still there. :-)As I like to put it : there are two ways to fly, the simple way and the complex way.
the simple way, as you have guessed would be using the UpdateMove() function. The way to do it can be seen in the Air Control Resource. just need some extra tweaking and up in the sky you go.
Since this is a Player modification, AIPlayers will be able to do it as well.
Now, the complex way requires creating a vehicle and mounting your player ( or AIPlayer ) on them. The problem is : Bots can't drive, they steer the vehicle erraticaly. To correct that, Badguy has created a steering function on this thread, but that only applies to 2D movement. Other guy ( sorry, really forgot his name ), had achieved robotic-controled-3D-flight. You could search for AIVehicle, AIFlyingVehicle, AIGameConnection.
HTH
#4
also FGE sample is a best sample for this class that usefull for me.
My email:moj.heidari@yahoo.com
11/13/2012 (3:32 pm)
I need AiFlyingvehicle class but not found.the download link for this class broken.anyone can help me and send to me this class?also FGE sample is a best sample for this class that usefull for me.
My email:moj.heidari@yahoo.com
Torque Owner Richard Devlin