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
^_^
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
^_^
About the author
#2
Good luck with your stuff, though.
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
First change Point2F mThrust; to Point3F mThrust; in flyingvehicle.h
than add in flyingvehicle.cc the following
in updateMove method
and finally
than this will add the z direction !!!
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); // <<---- addon updateforce
than this will add the z direction !!!
#5
09/13/2006 (8:54 pm)
Good show
Torque Owner Demolishun
DemolishunConsulting Rocks!