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
1 registered members (TipmyPip), 18,466 guests, and 6 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
Orientation With Lite-C #118128
03/18/07 22:25
03/18/07 22:25
Joined: Oct 2006
Posts: 7
A
agrollinspage Offline OP
Newbie
agrollinspage  Offline OP
Newbie
A

Joined: Oct 2006
Posts: 7
I am currently working on having a fire ball fly across the screen. The fire ball's model is a sphere that has a tail thats a cone. I can get it so it will shoot in the correct direction. The problem is I can not get the fire ball to rotate so that the tail is pointing in the right direction. Does anyone have any suggestions?

thanks

Re: Orientation With Lite-C [Re: agrollinspage] #118129
03/19/07 08:12
03/19/07 08:12
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Use vec_to_angle for that. If "vSpeed" is the speed vector of your fireball, set its angle by

vec_to_angle(my.pan,vSpeed);

Re: Orientation With Lite-C [Re: jcl] #118130
03/19/07 23:27
03/19/07 23:27
Joined: Oct 2006
Posts: 7
A
agrollinspage Offline OP
Newbie
agrollinspage  Offline OP
Newbie
A

Joined: Oct 2006
Posts: 7
Thanks a lot jcl, it worked


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