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
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 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
Model facing vs camera #154632
09/16/07 19:26
09/16/07 19:26
Joined: Sep 2006
Posts: 188
Latvia
MDI Offline OP
Member
MDI  Offline OP
Member

Joined: Sep 2006
Posts: 188
Latvia
I know how to make panel be faced vs camera, but or is any fast way how to do this with moedls too?


Latvija rullē
Re: Model facing vs camera [Re: MDI] #154633
09/16/07 19:49
09/16/07 19:49
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
This turns the my entity to the camera:

Code:
vec_diff(temp.x, camera.x, my.x);
vec_to_angle(my.pan, temp.x);



Model facing vs camera [Re: HeelX] #154634
09/16/07 20:48
09/16/07 20:48
Joined: Sep 2006
Posts: 188
Latvia
MDI Offline OP
Member
MDI  Offline OP
Member

Joined: Sep 2006
Posts: 188
Latvia
this is almost great but in this case i havent ideas how to take off facing for tilt! i need that only for pan!
But sure i somehow will find way how to make all work right!


Latvija rullē
Re: Model facing vs camera [Re: MDI] #154635
09/16/07 20:50
09/16/07 20:50
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
isnt that

vec_diff(temp.x, camera.x, my.x);
vec_to_angle(vector(my.pan,0,0), temp.x);

dont know sure


"empty"
Model facing vs camera [Re: flits] #154636
09/16/07 20:59
09/16/07 20:59
Joined: Sep 2006
Posts: 188
Latvia
MDI Offline OP
Member
MDI  Offline OP
Member

Joined: Sep 2006
Posts: 188
Latvia
In this case model dont respond to any camera movemetn! Stay in that place and position were created!


Latvija rullē
Re: Model facing vs camera [Re: MDI] #154637
09/17/07 06:42
09/17/07 06:42
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
vec_diff(temp.x, camera.x, my.x);
vec_to_angle(var,temp.x);
my.pan = var.pan


"empty"
Model facing vs camera [Re: flits] #154638
09/17/07 19:02
09/17/07 19:02
Joined: Sep 2006
Posts: 188
Latvia
MDI Offline OP
Member
MDI  Offline OP
Member

Joined: Sep 2006
Posts: 188
Latvia
Thanks for all! But i simply drop out vec_to_angle and put in m.pan = camera.pan!
All now seems work okay!


Latvija rullē

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