Game Development Community

Zeppelin/ Mothership>> in torque problems

by Andrea Barolo · in Torque Game Engine · 09/01/2006 (7:18 am) · 5 replies

Hello everybody !!!

We are trying to implement a mothership/ zeppelin like flying vehicle for our game . (The game will be similar to LastExile anime world we hope)

we tried to edit flyingvehicle class to do the job and we created 2 consolle methods to turn and to move forward the object on the sky !!

Now we must add a method, for exemple setAltitude( nnn ), to have the ship/zeppelin climb up (or down ) without pitching !!! (this is a non gravity affected flyingVehicle) ........

This is the problem !! Any sugestions ??

Thank you very much

^_^

#1
09/01/2006 (2:57 pm)
You will have to change the flying vehicle class or create a new vehicle. You may need to interpret inputs from the move structure differently or add more inputs to the move structure. There are resources that show how to add more stuff to the move structure. There is a turrest based resouce that shows that.
#2
09/01/2006 (3:32 pm)
Honestly, flyingVehicle seems overkill for what you need it to do.

Good luck with your stuff, though.
#3
09/04/2006 (1:03 am)
Tkz !!! We found that helicopter resource will be interesting !! when we finish with this we will post all our results to the community !!!
#4
09/05/2006 (2:40 am)
Update !! Hahahaah it was so simple !!!!

First change Point2F mThrust; to Point3F mThrust; in flyingvehicle.h

than add in flyingvehicle.cc the following

mThrust.x = move->x;
   mThrust.y = move->y;
   mThrust.z = move->z;  //<<---- add

in updateMove method

and finally
// Maneuvering jets
   force += yv * (mThrust.y * mDataBlock->maneuveringForce * mCeilingFactor);
   force += xv * (mThrust.x * mDataBlock->maneuveringForce * mCeilingFactor);
   force += zv * (mThrust.z * mDataBlock->maneuveringForce * mCeilingFactor); // <<---- add
on updateforce

than this will add the z direction !!!