Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,507 guests, and 12 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Local x? #126911
04/28/07 01:10
04/28/07 01:10
Joined: Sep 2006
Posts: 148
Ireng Offline OP
Member
Ireng  Offline OP
Member

Joined: Sep 2006
Posts: 148
How do I get the coords of a point 100 quants ahead of/ahead from a given entity, with any given pan, tilt or roll?

Like, 100 quants ahead from the entity's pan.


"When the battlefield is under total control, war becomes routine." Old Snake
Re: Local x? [Re: Ireng] #126912
04/28/07 04:24
04/28/07 04:24
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Code:

temp.x = 100;
temp.y = 0;
temp.z = 0;
vec_rotate(temp, my.pan);
vec_add(temp, my.x);



After this, temp will be hold the coords of the offset rotated by the ent's angles...

Last edited by xXxGuitar511; 04/28/07 04:24.

xXxGuitar511
- Programmer
Re: Local x? [Re: xXxGuitar511] #126913
04/28/07 04:33
04/28/07 04:33
Joined: Sep 2006
Posts: 148
Ireng Offline OP
Member
Ireng  Offline OP
Member

Joined: Sep 2006
Posts: 148
Thanks man!
You're always around when I need help!


"When the battlefield is under total control, war becomes routine." Old Snake
Re: Local x? [Re: Ireng] #126914
04/28/07 04:35
04/28/07 04:35
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
lol, NP...


xXxGuitar511
- Programmer
Re: Local x? [Re: xXxGuitar511] #126915
04/28/07 09:56
04/28/07 09:56
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
Guitar is everywhere... he is a ghost


Never say never.

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