5 registered members (AndrewAMD, SBGuy, Petra, flink, 1 invisible),
699
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
angle/vector conversion question
#466058
05/23/17 12:47
05/23/17 12:47
|
Joined: Dec 2011
Posts: 1,823 Netherlands
Reconnoiter
OP
Serious User
|
OP
Serious User
Joined: Dec 2011
Posts: 1,823
Netherlands
|
Hey, Does someone here know what the formula is from pan+roll to pan+tilt, while keeping the angle's direction? So in other words, the angle is facing the right direction but I want to let it use the tilt value and not the roll value. It probably has something to do with cosinus and sinus but my brain failing me in my math calculations.
Last edited by Reconnoiter; 05/23/17 12:47.
|
|
|
Re: angle/vector conversion question
[Re: Ezzett]
#466086
05/24/17 14:00
05/24/17 14:00
|
Joined: Jun 2007
Posts: 1,337 Hiporope and its pain
txesmi
Serious User
|
Serious User
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
|
Maybe you could also change the orientation of a model in MED so you could rotate it in your game via pan+tilt instead of pan+roll. That is the only way indeed. A direction vector is fully described by pan and tilt. Roll is the rotation around that vector, a non described property in a direction vector, so you have not made yourself understood. Be more specific, please.
|
|
|
Re: angle/vector conversion question
[Re: txesmi]
#466087
05/24/17 14:10
05/24/17 14:10
|
Joined: Dec 2011
Posts: 1,823 Netherlands
Reconnoiter
OP
Serious User
|
OP
Serious User
Joined: Dec 2011
Posts: 1,823
Netherlands
|
Did you already try to convert the pan-roll-angle to a vector via vec_for_angle and back to a pan-tilt-angle via vec_to_angle? , thanks A direction vector is fully described by pan and tilt. Roll is the rotation around that vector, a non described property in a direction vector, so you have not made yourself understood. Be more specific, please. , I already said I was sry for the confusion , what more do you want me to say?
|
|
|
|