Gamestudio Links
Zorro Links
Newest Posts
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
0 registered members (), 1,397 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
direction #120999
04/02/07 14:30
04/02/07 14:30
Joined: Feb 2006
Posts: 302
Beienrode/NDS/GERMANY
Dj_Pint Offline OP
Senior Member
Dj_Pint  Offline OP
Senior Member

Joined: Feb 2006
Posts: 302
Beienrode/NDS/GERMANY
hey there! i use the following code:

trace_to.x = my.x + 10000 * cos(my.pan) * cos(my.tilt);
trace_to.y = my.y + 10000 * sin(my.pan) * cos(my.tilt);
trace_to.z = my.z;

now the problem: how can i set the trace_to - point to the right side or the left side? have i only to change the *cos(my.pan) to *cos(my.pan + 90) or what?

thanks, Dj Pint


if u want to see some stuff i made, go to youTube and search for djpint, not dj pint^^
Re: direction [Re: Dj_Pint] #121000
04/02/07 14:33
04/02/07 14:33
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
var TraceTo[3];
...
TraceTo.x = 0;
TraceTo.y = 10000;
TraceTo.z = 0;
vec_rotate(TraceTo, my.pan);
trace_mode = ?;
c_trace(my.x, TraceTo, trace_mode;



This will trace 10,000 quants to the right of the player, ralatively. Replace all the tricky trig with a simple vec_rotate();


xXxGuitar511
- Programmer
Re: direction [Re: xXxGuitar511] #121001
04/02/07 14:35
04/02/07 14:35
Joined: Feb 2006
Posts: 302
Beienrode/NDS/GERMANY
Dj_Pint Offline OP
Senior Member
Dj_Pint  Offline OP
Senior Member

Joined: Feb 2006
Posts: 302
Beienrode/NDS/GERMANY
ahh cool, thx! but does this point pan with the actor or is it always the same?

Last edited by Dj_Pint; 04/02/07 14:36.

if u want to see some stuff i made, go to youTube and search for djpint, not dj pint^^
Re: direction [Re: Dj_Pint] #121002
04/02/07 15:23
04/02/07 15:23
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Pans with the actor...

It's the same as above, but repleaces trig with vec_rotate()...

Just adjust the offset to where you need it.


xXxGuitar511
- Programmer
Re: direction [Re: xXxGuitar511] #121003
04/21/07 19:01
04/21/07 19:01
Joined: Feb 2006
Posts: 302
Beienrode/NDS/GERMANY
Dj_Pint Offline OP
Senior Member
Dj_Pint  Offline OP
Senior Member

Joined: Feb 2006
Posts: 302
Beienrode/NDS/GERMANY
yo, thx, guitar!


if u want to see some stuff i made, go to youTube and search for djpint, not dj pint^^
Re: direction [Re: Dj_Pint] #121004
04/21/07 19:52
04/21/07 19:52
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

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


xXxGuitar511
- Programmer

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