Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (TedMar, AndrewAMD, fairtrader), 578 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to look at an entity with all direction ? #199546
03/31/08 08:41
03/31/08 08:41
Joined: Jan 2008
Posts: 2
F
FreddyWong Offline OP
Guest
FreddyWong  Offline OP
Guest
F

Joined: Jan 2008
Posts: 2
actually, i know how to face to an entity with pan angle :

vec_set (temp.x, entity2.x);
vec_sub (temp.x, entity1.x);
vec_to_angle (entity1.pan, temp);

but if the entity is moving up or down, how can i face to the flying entity ?
is that i want to calculate the tilt angle as well ? but how ? \:\(

Re: How to look at an entity with all direction ? [Re: FreddyWong] #199871
04/01/08 15:34
04/01/08 15:34
Joined: Oct 2007
Posts: 116
S
sydan Offline
Member
sydan  Offline
Member
S

Joined: Oct 2007
Posts: 116
pan should cover all values. It does for me as it acts as a rotation vector in certain cases. I cant see why it doesn't here.


For some reason, my ambition always seems to beat my ability.
Re: How to look at an entity with all direction ? [Re: sydan] #200114
04/02/08 16:37
04/02/08 16:37
Joined: Oct 2004
Posts: 1,655
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

Joined: Oct 2004
Posts: 1,655
probably determined already but,

simplified:
In such cases, where vector functions are used, .pan is a reference to .tilt also (but .roll is not discussed here), just as .x may be a reference to .y and .z.

.x = 0 (first ref for array)
.y = 1
.z = 2

.pan = 0 (first ref for array)
.tilt = 1
.roll = 2


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1