Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by jcl. 09/29/26 09:37
A3 projects
by Yopachi. 09/28/26 17:04
Parent/child object
by rayp. 09/27/26 14:43
Bug in train mode, or it seem to me
by mistery. 09/24/26 17:34
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (matty47, 1 invisible), 6,408 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
tb58k1ln, KelleyAbbey, Yopachi, Knull, Opus
19243 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