Home   Help Search Login Register  

Author Topic: Setting vehicle/object pitch (up-down angle)  (Read 586 times)

0 Members and 3 Guests are viewing this topic.

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Setting vehicle/object pitch (up-down angle)
« on: 22 Feb 2004, 23:53:02 »
Is their a way to set a vehicle's pitch (the angle of it's nose relative to horizontal)?  I do not see a simple command in the command ref. and I have searched the editor depot for a script to no avail.  Any help is much appreciated.  There is a command to set the direction, why not one to set the pitch?

Kaliyuga

  • Guest
Re:Setting vehicle/object pitch (up-down angle)
« Reply #1 on: 23 Feb 2004, 00:03:59 »
 I'm fairly certain that's something  you can't  do :-\

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Setting vehicle/object pitch (up-down angle)
« Reply #2 on: 23 Feb 2004, 01:55:39 »
It's a perennial problem.    Depending on exactly what you are trying to do it's sometimes possible to come up with a workaround but there is no simple way of changing an object's pitch.
Plenty of reviewed ArmA missions for you to play

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:Setting vehicle/object pitch (up-down angle)
« Reply #3 on: 23 Feb 2004, 11:09:50 »
Thanks all.  I've decided to just use velocity manipulation to achieve the same effect.  It is not as efficient, but I can make it work.  Thanks again for your replys.

sa8gecko

  • Guest
Re:Setting vehicle/object pitch (up-down angle)
« Reply #4 on: 23 Feb 2004, 11:52:53 »
I don't think setvelocity will change the pitch. I've experimented with
a guided missile and I didn't notice the missile itself to change his
pitching angle: it was always parallel to horizont. Perhaps you can
animate an object in O2: I mean, in my case for example, set an
animation from +90 to -90 , and after having checked the z axis component of
the velocity vector (normalized), set the pitch accordingly with
an animate command. Still maybe I'm talking bullshit, I'm not an O2
modeler and I've never tangled with animation. But if some of the
experts read this, please explain if it's possible or not.

« Last Edit: 23 Feb 2004, 11:53:47 by sa8gecko »

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:Setting vehicle/object pitch (up-down angle)
« Reply #5 on: 24 Feb 2004, 00:23:12 »
I knew I saw a script somewhere.

In the editors depot, the entry is called Bank/Pitch Functions.

sa8gecko

  • Guest
Re:Setting vehicle/object pitch (up-down angle)
« Reply #6 on: 24 Feb 2004, 07:19:20 »
But this script is actually only for retrieving pitch/bank angles, or there's
a way to set them ?

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:Setting vehicle/object pitch (up-down angle)
« Reply #7 on: 24 Feb 2004, 19:14:58 »
The Bank/Pitch functions script only retrieves bank & pitch information for a vehicle, it does not allow the bank and pitch to be set.  I am working on a guided missile script (there is one by Sefe already in the editors depot), but I'm making a new one that extends the missile life and allows the missile to be "juked" by flares.  I'm also wanting to keep the physics more realistic so that a missile in a tight turn or climb will loose speed.  I can do this all with velocity vector manipulation, but the fact that the camcreated missiles stay horizontal and continue to want to excellerate horizontally is very annoying and makes vector manipulation very mathematically taxing, not to mention inefficient.  I like a good mathematical challenge, but I like efficiency more.  So if I can get in an A10 and use my joy stick to change pitch and bank, why can't I manipulate the same aspects of a vehicle via a script?  Yea I can rotate it with setDir till I'm blue in the face.  But noooooo, not bank and pitch!!  In the meantime If anyone knows any tricks to bypass this lacking in commands, please help.

sa8gecko

  • Guest
Re:Setting vehicle/object pitch (up-down angle)
« Reply #8 on: 24 Feb 2004, 19:31:51 »
Raptorsaurus: I'm on the same thing. I've written a terrain following
script using setvelocity. If you wish I can mail you some screenshots.
Please let me know.

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:Setting vehicle/object pitch (up-down angle)
« Reply #9 on: 24 Feb 2004, 20:36:15 »
sa8gecko,

Sure,  I'm always liking to checkout cool screenshots.