Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (TipmyPip, AndrewAMD, dBc, clonman), 18,621 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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